diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue index 19c0973f8d..cc12396ec7 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/FieldsMenu.vue @@ -56,6 +56,10 @@ eventBus.on((event) => { if (event === SmartsheetStoreEvents.FIELD_RELOAD) { loadViewColumns() } + else if (event === SmartsheetStoreEvents.MAPPED_BY_COLUMN_CHANGE) { + // alert('SmartsheetStoreEvents.MAPPED_BY_COLUMN_CHANGE') + loadViewColumns() + } }) watch( @@ -120,13 +124,13 @@ const coverImageColumnId = computed({ ...activeView.value?.view, fk_cover_image_col_id: val, }) - ;(activeView.value.view as GalleryType).fk_cover_image_col_id = val + ; (activeView.value.view as GalleryType).fk_cover_image_col_id = val } else if (activeView.value?.type === ViewTypes.KANBAN) { await $api.dbView.kanbanUpdate(activeView.value?.id, { ...activeView.value?.view, fk_cover_image_col_id: val, }) - ;(activeView.value.view as KanbanType).fk_cover_image_col_id = val + ; (activeView.value.view as KanbanType).fk_cover_image_col_id = val } reloadViewMetaHook?.trigger() } @@ -163,21 +167,11 @@ useMenuCloseOnEsc(open)