Delete the selected file only
This commit is contained in:
parent
5171fc09fb
commit
9fb5b2a37d
1 changed files with 3 additions and 1 deletions
|
@ -95,8 +95,10 @@
|
||||||
"change",
|
"change",
|
||||||
value.filter((x, idx) => idx !== selectedImageIdx)
|
value.filter((x, idx) => idx !== selectedImageIdx)
|
||||||
)
|
)
|
||||||
|
await deleteAttachments(
|
||||||
|
value.filter((x, idx) => idx === selectedImageIdx).map(item => item.key)
|
||||||
|
)
|
||||||
selectedImageIdx = 0
|
selectedImageIdx = 0
|
||||||
await deleteAttachments(value.map(item => item.key))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function navigateLeft() {
|
function navigateLeft() {
|
||||||
|
|
Loading…
Reference in a new issue