π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: some warning issues
Ramesh Mane581103cc2191
diff --git a/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue b/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vueindex b8456f01a3..e70b86e719 100644--- a/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue+++ b/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue@@ -66,7 +66,8 @@ async function onOpenModal({isViewListLoading.value = truetry {await loadViews({- tableId: activeTable.value.id!,+ tableId: activeTable.value?.id as string,+ baseId: base.value.id!,})} catch (e) {console.log('error', e)diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vueindex 026fb7766b..d7ebb63353 100644--- a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue+++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue@@ -84,7 +84,8 @@ async function onOpenModal({isViewListLoading.value = trueawait loadViews({- tableId: table.value.id!,+ tableId: table.value?.id as string,+ baseId: base.value.id!,})isOpen.value = falsediff --git a/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue b/packages/nc-gui/components/dashboard/TreeView/Table/Node.vueindex 5bfaee00e5..d6c30aae38 100644--- a/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue+++ b/packages/nc-gui/components/dashboard/TreeView/Table/Node.vue@@ -171,7 +171,7 @@ const onExpand = async () => {isLoading.value = truetry {- await _loadViews({ tableId: table.value.id, ignoreLoading: true })+ await _loadViews({ tableId: table.value?.id as string, baseId: base.value.id!, ignoreLoading: true })} catch (e) {message.error(await extractSdkResponseErrorMsg(e))} finally {diff --git a/packages/nc-gui/components/dashboard/TreeView/Views/List.vue b/packages/nc-gui/components/dashboard/TreeView/Views/List.vueindex c49563f0ba..a9955a7d45 100644--- a/packages/nc-gui/components/dashboard/TreeView/Views/List.vue+++ b/packages/nc-gui/components/dashboard/TreeView/Views/List.vue@@ -354,6 +354,7 @@ function onOpenModal({await loadViews({force: true,tableId: table.value.id!,+ baseId: base.value.id!,})if (view) {diff --git a/packages/nc-gui/components/dlg/ReAssign/index.vue b/packages/nc-gui/components/dlg/ReAssign/index.vueindex 62b33b4f4e..529f321903 100644--- a/packages/nc-gui/components/dlg/ReAssign/index.vue+++ b/packages/nc-gui/components/dlg/ReAssign/index.vue@@ -84,7 +84,8 @@ const assignView = async () => {viewsStore.loadViews({ignoreLoading: true,- tableId: props.view.fk_model_id,+ tableId: props.view?.fk_model_id as string,+ baseId: props.view?.base_id,force: true,}).catch(() => {diff --git a/packages/nc-gui/components/n/RecordPicker/index.vue b/packages/nc-gui/components/n/RecordPicker/index.vueindex 8dc6238f82..9b90c5a728 100644--- a/packages/nc-gui/components/n/RecordPicker/index.vue+++ b/packages/nc-gui/components/n/RecordPicker/index.vue@@ -118,11 +118,11 @@ const loadMetas = async () => {viewMeta.value = findViews().find((v) => v.id === props.viewId)if (!viewMeta.value) {- await loadViews({ tableId: props.tableId, force: true })+ await loadViews({ tableId: props.tableId, baseId: effectiveBaseId!, force: true })viewMeta.value = findViews().find((v) => v.id === props.viewId)}} else {- await loadViews({ tableId: props.tableId, force: true })+ await loadViews({ tableId: props.tableId, baseId: effectiveBaseId!, force: true })viewMeta.value = getFirstNonPersonalView(findViews(), {includeViewType: ViewTypes.GRID,})diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vueindex a569da257f..126847edb6 100644--- a/packages/nc-gui/components/tabs/Smartsheet.vue+++ b/packages/nc-gui/components/tabs/Smartsheet.vue@@ -247,6 +247,7 @@ const onReady = () => {const checkIfViewExists = async () => {await until(() => isViewsLoading.value).toBe(false)const views = await viewStore.loadViews({+ baseId: activeProjectId.value,ignoreLoading: true,})diff --git a/packages/nc-gui/composables/useColumnCreateStore.ts b/packages/nc-gui/composables/useColumnCreateStore.tsindex c426669c39..c6508e286d 100644--- a/packages/nc-gui/composables/useColumnCreateStore.ts+++ b/packages/nc-gui/composables/useColumnCreateStore.ts@@ -419,7 +419,12 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState)if (oldCol && [UITypes.Date, UITypes.DateTime, UITypes.CreatedTime, UITypes.LastModifiedTime].includes(oldCol.uidt)) {- viewsStore.loadViews({ tableId: oldCol?.fk_model_id, ignoreLoading: true, force: true })+ viewsStore.loadViews({+ tableId: oldCol?.fk_model_id,+ baseId: meta.value!.base_id!,+ ignoreLoading: true,+ force: true,+ })}eventBus.emit(SmartsheetStoreEvents.FIELD_UPDATE)eventBus.emit(SmartsheetStoreEvents.ROW_COLOR_UPDATE)diff --git a/packages/nc-gui/composables/useExtensionHelper.ts b/packages/nc-gui/composables/useExtensionHelper.tsindex ae52e61b6e..90429222e6 100644--- a/packages/nc-gui/composables/useExtensionHelper.ts+++ b/packages/nc-gui/composables/useExtensionHelper.ts@@ -58,7 +58,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState(return viewsByTable.value.get(key) as ViewType[]}- await viewStore.loadViews({ tableId, ignoreLoading: true })+ await viewStore.loadViews({ tableId, baseId: table.base_id, ignoreLoading: true })return viewsByTable.value.get(key) as ViewType[]}diff --git a/packages/nc-gui/composables/useTableNew.ts b/packages/nc-gui/composables/useTableNew.tsindex 3da2ef5fae..5466f57739 100644--- a/packages/nc-gui/composables/useTableNew.ts+++ b/packages/nc-gui/composables/useTableNew.ts@@ -98,7 +98,7 @@ export function useTableNew(param: {table.isViewsLoading = truetry {- await loadViews({ tableId: table.id as string })+ await loadViews({ tableId: table.id as string, baseId: table.base_id as string })if (table.base_id) {const key = `${table.base_id}:${table.id}`