From b84a7ea9a5002b4752c0d59e3b01c42b2f746dd6 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 7 Nov 2022 19:16:14 +0530 Subject: [PATCH] fix(gui): remove files from both attachments and storedFiles Signed-off-by: Pranav C --- packages/nc-gui/components/cell/attachment/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts index bfa705f387..637d967476 100644 --- a/packages/nc-gui/components/cell/attachment/utils.ts +++ b/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 {