diff --git a/packages/nc-gui/composables/useMapViewDataStore.ts b/packages/nc-gui/composables/useMapViewDataStore.ts index 1ac4a6ecba..acb980bbe1 100644 --- a/packages/nc-gui/composables/useMapViewDataStore.ts +++ b/packages/nc-gui/composables/useMapViewDataStore.ts @@ -23,7 +23,7 @@ const formatData = (list: Record[]) => const [useProvideMapViewStore, useMapViewStore] = useInjectionState( ( meta: Ref, - viewMeta: Ref | ComputedRef<(ViewType & { id: string }) | undefined>, + viewMeta: Ref<(ViewType | MapType | undefined) & { id: string }> | ComputedRef<(ViewType & { id: string }) | undefined>, shared = false, where?: ComputedRef, ) => { @@ -88,7 +88,7 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState( }) : await fetchSharedViewData({ sortsArr: sorts.value, filtersArr: nestedFilters.value }) - formattedData.value = formatData(res.list) + formattedData.value = formatData(res!.list) } async function updateMapMeta(updateObj: Partial) { @@ -107,7 +107,7 @@ const [useProvideMapViewStore, useMapViewStore] = useInjectionState( { metaValue = meta.value, viewMetaValue = viewMeta.value, - }: { metaValue?: MapType; viewMetaValue?: ViewType | MapType } = {}, + }: { metaValue?: MapType & { id: string }; viewMetaValue?: (ViewType | MapType) & { id: string } } = {}, ) { const row = currentRow.row if (currentRow.rowMeta) currentRow.rowMeta.saving = true