Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(AxiosError): Unhandled axios Error

Ramesh Mane41924584a02c
diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts
index 2f5cb575cc..4500a75b1d 100644
--- a/packages/nc-gui/components/cell/attachment/utils.ts
+++ b/packages/nc-gui/components/cell/attachment/utils.ts
@@ -389,7 +389,12 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState(
urlOrPath: src,
})
- const res = await apiPromise()
+ let res
+
+ try {
+ res = await apiPromise()
+ } catch {}
+
if (!res) {
console.error('Invalid response')
message.error('Failed to download file')