Browse Source

Merge pull request #3365 from nocodb/fix/gui-v2-shared-form-view

fix(gui-v2): undefined view in shared form
pull/3367/head
Raju Udava 2 years ago committed by GitHub
parent
commit
5a8b49745f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui-v2/composables/useLTARStore.ts

3
packages/nc-gui-v2/composables/useLTARStore.ts

@ -47,8 +47,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
const colOptions = $computed(() => column?.value.colOptions as LinkToAnotherRecordType) const colOptions = $computed(() => column?.value.colOptions as LinkToAnotherRecordType)
const { sharedView } = useSharedView() as Record<string, any> const { sharedView } = useSharedView() as Record<string, any>
const projectId = project?.value?.id || sharedView.value?.view?.project_id
const projectId = project?.value?.id || sharedView.value.view.project_id
// getters // getters
const meta = computed(() => metas?.value?.[column?.value?.fk_model_id as string]) const meta = computed(() => metas?.value?.[column?.value?.fk_model_id as string])

Loading…
Cancel
Save