Browse Source

fix(gui): remove files from both attachments and storedFiles

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4302/head
Pranav C 2 years ago
parent
commit
b84a7ea9a5
  1. 1
      packages/nc-gui/components/cell/attachment/utils.ts

1
packages/nc-gui/components/cell/attachment/utils.ts

@ -66,6 +66,7 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState(
function removeFile(i: number) {
if (isPublic.value) {
storedFiles.value.splice(i, 1)
attachments.value.splice(i, 1)
updateModelValue(storedFiles.value)
} else {

Loading…
Cancel
Save