Browse Source

fix(nc-gui): trigger field reload on adding new field

pull/9780/head
Ramesh Mane 2 weeks ago
parent
commit
e002ce67ca
  1. 4
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

4
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()
}

Loading…
Cancel
Save