diff --git a/packages/nc-gui/components/smartsheet/header/CellIcon.ts b/packages/nc-gui/components/smartsheet/header/CellIcon.ts index 8c270af2a9..251c7d7c99 100644 --- a/packages/nc-gui/components/smartsheet/header/CellIcon.ts +++ b/packages/nc-gui/components/smartsheet/header/CellIcon.ts @@ -84,7 +84,7 @@ const renderIcon = (column: ColumnType, abstractType: any) => { } else if (isGeometry(column)) { return iconMap.calculator } else if (isUser(column)) { - if ((column.meta as { is_multi: boolean; notify: boolean }).is_multi) { + if ((column.meta as { is_multi?: boolean; notify?: boolean })?.is_multi) { return iconMap.phUsers } return iconMap.phUser 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