From 635ece86e3f15241f0de897d6b8f10d7e5aff91a Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 28 Dec 2023 13:40:07 +0000 Subject: [PATCH] fix: shared form view user field --- packages/nc-gui/composables/useSharedFormViewStore.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/nc-gui/composables/useSharedFormViewStore.ts b/packages/nc-gui/composables/useSharedFormViewStore.ts index c790c9451c..24a75723f5 100644 --- a/packages/nc-gui/composables/useSharedFormViewStore.ts +++ b/packages/nc-gui/composables/useSharedFormViewStore.ts @@ -60,6 +60,9 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share const baseStore = useBase() const { base } = storeToRefs(baseStore) + const basesStore = useBases() + const { basesUser } = storeToRefs(basesStore) + const { t } = useI18n() const formState = ref>({}) @@ -127,6 +130,10 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share const relatedMetas = { ...viewMeta.relatedMetas } Object.keys(relatedMetas).forEach((key) => setMeta(relatedMetas[key])) + + if (viewMeta.users) { + basesUser.value.set(viewMeta.base_id, viewMeta.users) + } } catch (e: any) { if (e.response && e.response.status === 404) { notFound.value = true