diff --git a/packages/nc-gui/composables/useProject.ts b/packages/nc-gui/composables/useProject.ts index f0c1109385..2ddd8176bd 100644 --- a/packages/nc-gui/composables/useProject.ts +++ b/packages/nc-gui/composables/useProject.ts @@ -35,7 +35,7 @@ export const useProject = createSharedComposable(() => { const project = ref({}) - const bases = computed(() => project.value?.bases || []) + const bases = computed(() => project.value?.bases?.filter((base: BaseType) => base.enabled) || []) const tables = ref([]) diff --git a/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue b/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue index aa95232f38..c973b2fb5a 100644 --- a/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue +++ b/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue @@ -98,6 +98,7 @@ function openQuickImportDialog(type: QuickImportTypes, file: File) { 'modelValue': isOpen, 'importType': type, 'onUpdate:modelValue': closeDialog, + 'baseId': bases.value[0].id, }) vNode.value?.component?.exposed?.handleChange({