From e002ce67ca1f12627251414774f86d81de9ea95f Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 12 Nov 2024 06:45:56 +0000 Subject: [PATCH] fix(nc-gui): trigger field reload on adding new field --- packages/nc-gui/components/smartsheet/column/EditOrAdd.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 2910a1ba0a..27ddf716fc 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -53,6 +53,8 @@ const { t } = useI18n() const { isMetaReadOnly } = useRoles() +const { eventBus } = useSmartsheetStoreOrThrow() + const columnLabel = computed(() => props.columnLabel || t('objects.field')) const { $e } = useNuxtApp() @@ -179,6 +181,8 @@ const onSelectType = (uidt: UITypes) => { const reloadMetaAndData = async () => { await getMeta(meta.value?.id as string, true) + eventBus.emit(SmartsheetStoreEvents.FIELD_RELOAD) + if (!isKanban.value) { reloadDataTrigger?.trigger() }