Fix deletion fail errro

old-stable24^2
Varun Patil 2022-10-28 19:03:29 -07:00
parent 194c97aaf9
commit 4c66ef1949
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}