From 131ee2cbb33955214fb919d323c1851a4e1d6bb6 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Aug 2022 22:12:25 +0530 Subject: [PATCH] fix(gui-v2): handle non image file in shared form Signed-off-by: Pranav C --- packages/nc-gui-v2/components/cell/attachment/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui-v2/components/cell/attachment/utils.ts b/packages/nc-gui-v2/components/cell/attachment/utils.ts index 301d937944..d547633bd1 100644 --- a/packages/nc-gui-v2/components/cell/attachment/utils.ts +++ b/packages/nc-gui-v2/components/cell/attachment/utils.ts @@ -86,6 +86,8 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( resolve(res) } reader.readAsDataURL(file) + } else { + resolve(res) } }), ),