From 85fb294f7ab036c21083bf52cca73f60b7e01644 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 22 Sep 2023 15:23:16 +0000 Subject: [PATCH] fix: Added isDefaultBase util to FE --- .../components/dashboard/TreeView/ViewsList.vue | 2 +- .../components/dashboard/TreeView/ViewsNode.vue | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue b/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue index 7a27b1f028..611b2f3ebe 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ViewsList.vue @@ -4,8 +4,8 @@ import { ViewTypes } from 'nocodb-sdk' import type { SortableEvent } from 'sortablejs' import Sortable from 'sortablejs' import type { Menu as AntMenu } from 'ant-design-vue' -import { isDefaultBase as _isDefaultBase } from '~/utils/baseUtils' import { + isDefaultBase as _isDefaultBase, extractSdkResponseErrorMsg, message, onMounted, diff --git a/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue b/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue index dc658f3236..6ef21b6b8b 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ViewsNode.vue @@ -2,8 +2,17 @@ import type { VNodeRef } from '@vue/runtime-core' import type { KanbanType, ViewType, ViewTypes } from 'nocodb-sdk' import type { WritableComputedRef } from '@vue/reactivity' -import { isDefaultBase as _isDefaultBase } from '~/utils/baseUtils' -import { IsLockedInj, inject, message, onKeyStroke, useDebounceFn, useNuxtApp, useRoles, useVModel } from '#imports' +import { + IsLockedInj, + isDefaultBase as _isDefaultBase, + inject, + message, + onKeyStroke, + useDebounceFn, + useNuxtApp, + useRoles, + useVModel, +} from '#imports' interface Props { view: ViewType