diff --git a/packages/nc-gui/components/template/Editor.vue b/packages/nc-gui/components/template/Editor.vue index a6be949176..7a077e045e 100644 --- a/packages/nc-gui/components/template/Editor.vue +++ b/packages/nc-gui/components/template/Editor.vue @@ -501,16 +501,12 @@ async function importTemplate() { } } } - const createdTable = await $api.base.tableCreate( - project.value?.id as string, - (baseId || project.value?.bases?.[0].id)!, - { - table_name: table.table_name, - // leave title empty to get a generated one based on table_name - title: '', - columns: table.columns || [], - }, - ) + const createdTable = await $api.base.tableCreate(project.value?.id as string, (baseId || project.value?.bases?.[0].id)!, { + table_name: table.table_name, + // leave title empty to get a generated one based on table_name + title: '', + columns: table.columns || [], + }) table.id = createdTable.id table.title = createdTable.title diff --git a/packages/nc-gui/composables/useKanbanViewStore.ts b/packages/nc-gui/composables/useKanbanViewStore.ts index 58827e8d42..d960bc35d5 100644 --- a/packages/nc-gui/composables/useKanbanViewStore.ts +++ b/packages/nc-gui/composables/useKanbanViewStore.ts @@ -1,15 +1,5 @@ import type { ComputedRef, Ref } from 'vue' -import type { - Api, - AttachmentType, - ColumnType, - KanbanType, - SelectOptionType, - SelectOptionsType, - TableType, - ViewType, -} from 'nocodb-sdk' -import { UITypes } from 'nocodb-sdk' +import type { Api, ColumnType, KanbanType, SelectOptionType, SelectOptionsType, TableType, ViewType } from 'nocodb-sdk' import type { Row } from '~/lib' import { IsPublicInj, @@ -25,7 +15,6 @@ import { ref, useApi, useFieldQuery, - useGlobal, useI18n, useInjectionState, useNuxtApp, @@ -55,8 +44,6 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( const { $e, $api } = useNuxtApp() - const { appInfo } = useGlobal() - const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() const { sharedView, fetchSharedViewData, fetchSharedViewGroupedData } = useSharedView() @@ -91,10 +78,6 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState( return where }) - const attachmentColumns = computed(() => - (meta.value?.columns as ColumnType[])?.filter((c) => c.uidt === UITypes.Attachment).map((c) => c.title), - ) - provide(SharedViewPasswordInj, password) // kanban view meta data diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts index 67a9f77728..e555a6353f 100644 --- a/packages/nc-gui/composables/useViewData.ts +++ b/packages/nc-gui/composables/useViewData.ts @@ -1,15 +1,5 @@ import { UITypes, ViewTypes } from 'nocodb-sdk' -import type { - Api, - AttachmentType, - ColumnType, - FormColumnType, - FormType, - GalleryType, - PaginatedType, - TableType, - ViewType, -} from 'nocodb-sdk' +import type { Api, ColumnType, FormColumnType, FormType, GalleryType, PaginatedType, TableType, ViewType } from 'nocodb-sdk' import type { ComputedRef, Ref } from 'vue' import { IsPublicInj, @@ -91,10 +81,6 @@ export function useViewData( const { isUIAllowed } = useUIPermission() - const attachmentColumns = computed(() => - (meta.value?.columns as ColumnType[])?.filter((c) => c.uidt === UITypes.Attachment).map((c) => c.title), - ) - const routeQuery = $computed(() => route.query as Record) const paginationData = computed({