From 4c66ef1949e81cf77cd808d6539e693c129d888e Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 28 Oct 2022 19:03:29 -0700 Subject: [PATCH] Fix deletion fail errro --- src/components/SelectionManager.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } }