1
0
Fork 0
mirror of synced 2024-07-19 21:26:22 +12:00

Delete the selected file only

This commit is contained in:
Mel O'Hagan 2022-08-12 11:43:39 +01:00
parent 5171fc09fb
commit 9fb5b2a37d

View file

@ -95,8 +95,10 @@
"change",
value.filter((x, idx) => idx !== selectedImageIdx)
)
await deleteAttachments(
value.filter((x, idx) => idx === selectedImageIdx).map(item => item.key)
)
selectedImageIdx = 0
await deleteAttachments(value.map(item => item.key))
}
function navigateLeft() {