diff --git a/src/components/SelectionManager.vue b/src/components/SelectionManager.vue index 081b9e27..342f8b77 100644 --- a/src/components/SelectionManager.vue +++ b/src/components/SelectionManager.vue @@ -333,7 +333,9 @@ export default class SelectionHandler extends Mixins(GlobalMixin, UserConfig) { for await (const delIds of dav.deletePhotos( Array.from(selection.values()) )) { - const delPhotos = delIds.map((id) => selection.get(id)); + const delPhotos = delIds + .filter((id) => id) + .map((id) => selection.get(id)); this.deletePhotos(delPhotos); } }