Browse Source

fix shared map view issue - WIP - fix type issue

pull/5248/head
Daniel Spaude 2 years ago
parent
commit
b732fcc227
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 2
      packages/nc-gui/composables/useMapViewDataStore.ts
  2. 14
      packages/nc-gui/composables/useSharedView.ts

2
packages/nc-gui/composables/useMapViewDataStore.ts

@ -22,7 +22,7 @@ const formatData = (list: Record<string, any>[]) =>
const [useProvideMapViewStore, useMapViewStore] = useInjectionState(
(
meta: Ref<TableType | undefined>,
meta: Ref<MapType | undefined>,
viewMeta: Ref<ViewType | MapType | undefined> | ComputedRef<(ViewType & { id: string }) | undefined>,
shared = false,
where?: ComputedRef<string | undefined>,

14
packages/nc-gui/composables/useSharedView.ts

@ -1,4 +1,14 @@
import type { ExportTypes, FilterType, KanbanType, PaginatedType, RequestParams, SortType, TableType, ViewType } from 'nocodb-sdk'
import type {
ExportTypes,
FilterType,
KanbanType,
MapType,
PaginatedType,
RequestParams,
SortType,
TableType,
ViewType,
} from 'nocodb-sdk'
import { UITypes } from 'nocodb-sdk'
import { computed, useGlobal, useMetas, useNuxtApp, useState } from '#imports'
@ -21,7 +31,7 @@ export function useSharedView() {
const allowCSVDownload = useState<boolean>('allowCSVDownload', () => false)
const meta = useState<TableType | KanbanType | undefined>('meta', () => undefined)
const meta = useState<TableType | KanbanType | MapType | undefined>('meta', () => undefined)
const formColumns = computed(
() =>

Loading…
Cancel
Save