From 996a5f710bbd995dff07159fb4969efbaf5469ac Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 16 Mar 2023 16:53:07 +0800 Subject: [PATCH] fix(nc-gui): useMapViewDataStore types --- packages/nc-gui/composables/useMapViewDataStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/composables/useMapViewDataStore.ts b/packages/nc-gui/composables/useMapViewDataStore.ts index 28ed1a3873..21c16079fa 100644 --- a/packages/nc-gui/composables/useMapViewDataStore.ts +++ b/packages/nc-gui/composables/useMapViewDataStore.ts @@ -1,6 +1,6 @@ import { reactive } from 'vue' import type { ComputedRef, Ref } from 'vue' -import type { ColumnType, MapType, PaginatedType, ViewType } from 'nocodb-sdk' +import type { ColumnType, MapType, PaginatedType, TableType, ViewType } from 'nocodb-sdk' import { IsPublicInj, ref, storeToRefs, useInjectionState, useMetas, useProject } from '#imports' import type { Row } from '~/lib' @@ -22,7 +22,7 @@ const formatData = (list: Record[]) => const [useProvideMapViewStore, useMapViewStore] = useInjectionState( ( - meta: Ref, + meta: Ref<(MapType & { id: string }) | undefined>, viewMeta: Ref<(ViewType | MapType | undefined) & { id: string }> | ComputedRef<(ViewType & { id: string }) | undefined>, shared = false, where?: ComputedRef, @@ -111,7 +111,7 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState( if (currentRow.rowMeta) currentRow.rowMeta.saving = true try { const { missingRequiredColumns, insertObj } = await populateInsertObject({ - meta: metaValue!, + meta: metaValue as TableType, ltarState, getMeta, row,