From 53388c7afe82f380eef1b0fd44fc5d46a007954b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 23 Sep 2022 13:26:27 +0800 Subject: [PATCH] feat(nc-gui): add KanbanType in useSharedView --- packages/nc-gui/composables/useSharedView.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useSharedView.ts b/packages/nc-gui/composables/useSharedView.ts index 14127b55fe..d9b434f615 100644 --- a/packages/nc-gui/composables/useSharedView.ts +++ b/packages/nc-gui/composables/useSharedView.ts @@ -1,4 +1,14 @@ -import type { Api, ExportTypes, FilterType, PaginatedType, RequestParams, SortType, TableType, ViewType } from 'nocodb-sdk' +import type { + Api, + ExportTypes, + FilterType, + KanbanType, + PaginatedType, + RequestParams, + SortType, + TableType, + ViewType, +} from 'nocodb-sdk' import { UITypes } from 'nocodb-sdk' import { useNuxtApp } from '#app' @@ -12,11 +22,11 @@ export function useSharedView() { const sorts = useState('sorts', () => []) const password = useState('password', () => undefined) const allowCSVDownload = useState('allowCSVDownload', () => false) - const meta = useState('meta', () => undefined) + const meta = useState('meta', () => undefined) const formColumns = computed( () => - meta.value?.columns + (meta.value as TableType)?.columns ?.filter( (f: Record) => f.show && f.uidt !== UITypes.Rollup && f.uidt !== UITypes.Lookup && f.uidt !== UITypes.Formula,