From 3f500384b0d88e91d118ec9682343bec3702b0f1 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Tue, 28 Nov 2023 11:06:42 +0530 Subject: [PATCH] fix: Fixed skelton loading issue --- packages/nc-gui/composables/useData.ts | 4 ---- packages/nc-gui/composables/useViewData.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packages/nc-gui/composables/useData.ts b/packages/nc-gui/composables/useData.ts index aa80b9d185..b306ec55cf 100644 --- a/packages/nc-gui/composables/useData.ts +++ b/packages/nc-gui/composables/useData.ts @@ -34,10 +34,6 @@ export function useData(args: { }) { const { meta, viewMeta, formattedData, paginationData, callbacks } = args - if (!meta) { - throw new Error('Table meta is not available') - } - const { t } = useI18n() const { getMeta, metas } = useMetas() diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 2f16d64bef..b56f5fd920 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -42,10 +42,6 @@ export function useViewData( const meta = computed(() => _meta.value || activeTable.value) const metaId = computed(() => _meta.value?.id || activeTableId.value) - if (!meta.value) { - throw new Error('Table meta is not available') - } - const { t } = useI18n() const optimisedQuery = useState('optimisedQuery', () => true)