From c8946592839e85070e4eaf61708483cbe2c6fc9e Mon Sep 17 00:00:00 2001 From: Semjon Geist Date: Thu, 23 Feb 2023 11:52:27 +0100 Subject: [PATCH] add filter only enabled bases to openCreateTable --- .../pages/[projectType]/[projectId]/index/index/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 11589d4ab3..086ed5fe6f 100644 --- a/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue +++ b/packages/nc-gui/pages/[projectType]/[projectId]/index/index/index.vue @@ -130,7 +130,7 @@ function openCreateTable() { const { close } = useDialog(resolveComponent('DlgTableCreate'), { 'modelValue': isOpen, 'onUpdate:modelValue': closeDialog, - 'baseId': bases.value[0].id, + 'baseId': bases.value?.filter((base: BaseType) => base.enabled)[0].id, }) function closeDialog() {