From efab4246bf160d8f3104600e48846f8763713a19 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 20 Feb 2024 06:06:24 +0000 Subject: [PATCH] fic(nc-gui): PR review changes --- packages/nc-gui/components/cell/attachment/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts index d669f0760f..0e53d235c4 100644 --- a/packages/nc-gui/components/cell/attachment/utils.ts +++ b/packages/nc-gui/components/cell/attachment/utils.ts @@ -330,12 +330,12 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( return { mimetype: response.headers.get('content-type') || undefined, size: +(response.headers.get('content-length') || 0) || undefined, - } as { minetype?: string; size?: number } + } as { mimetype?: string; size?: number } } else if (imageUrl.slice(imageUrl.lastIndexOf('.') + 1).toLowerCase().length) { return { mimetype: `image/${imageUrl.slice(imageUrl.lastIndexOf('.') + 1).toLowerCase()}`, size: +(response.headers.get('content-length') || 0) || undefined, - } as { minetype?: string; size?: number } + } as { mimetype?: string; size?: number } } } } catch (err) {