diff --git a/packages/nc-gui/components/cell/attachment/utils.ts b/packages/nc-gui/components/cell/attachment/utils.ts index 6b202c519c..007e557b95 100644 --- a/packages/nc-gui/components/cell/attachment/utils.ts +++ b/packages/nc-gui/components/cell/attachment/utils.ts @@ -237,17 +237,7 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( // if path doesn't exist, use `item.url` if (path) { // try ${appInfo.value.ncSiteUrl}/${item.path} first - const url = `${appInfo.value.ncSiteUrl}/${item.path}` - try { - const res = await fetch(url) - if (res.ok) { - // use `url` if it is accessible - return Promise.resolve(url) - } - } catch { - // for some cases, `url` is not accessible as expected - // do nothing here - } + return Promise.resolve(`${appInfo.value.ncSiteUrl}/${item.path}`) } // if it fails, use the original url return Promise.resolve(item.url) diff --git a/packages/nc-gui/composables/useKanbanViewStore.ts b/packages/nc-gui/composables/useKanbanViewStore.ts index a9b46f8f4e..21314d8caf 100644 --- a/packages/nc-gui/composables/useKanbanViewStore.ts +++ b/packages/nc-gui/composables/useKanbanViewStore.ts @@ -149,17 +149,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( // if path doesn't exist, use `item.url` if (path) { // try ${appInfo.value.ncSiteUrl}/${item.path} first - const url = `${appInfo.value.ncSiteUrl}/${item.path}` - try { - const res = await fetch(url) - if (res.ok) { - // use `url` if it is accessible - return Promise.resolve(url) - } - } catch { - // for some cases, `url` is not accessible as expected - // do nothing here - } + return Promise.resolve(`${appInfo.value.ncSiteUrl}/${item.path}`) } // if it fails, use the original url return Promise.resolve(item.url) diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 670eead85b..69bf5cec66 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -207,17 +207,7 @@ export function useViewData( // if path doesn't exist, use `item.url` if (path) { // try ${appInfo.value.ncSiteUrl}/${item.path} first - const url = `${appInfo.ncSiteUrl}/${item.path}` - try { - const res = await fetch(url) - if (res.ok) { - // use `url` if it is accessible - return Promise.resolve(url) - } - } catch { - // for some cases, `url` is not accessible as expected - // do nothing here - } + return Promise.resolve(`${appInfo.ncSiteUrl}/${item.path}`) } // if it fails, use the original url return Promise.resolve(item.url)