Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): review changes

Ramesh Mane4009a0339023
diff --git a/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue b/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
index c2b95be575..82d0b2eeec 100644
--- a/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
+++ b/packages/nc-gui/components/smartsheet/header/ColumnMenu.vue
@@ -354,6 +354,11 @@ const hideOrShowField = async () => {
})
} catch (e: any) {
console.log('error', e)
+ if (skipShowViewColumnsLoading.value) {
+ fieldsMap.value[column.value.id].show = true
+ updateDefaultViewColVisibility(column?.value.id, true)
+ }
+
message.error(t('msg.error.columnVisibilityUpdateFailed'))
} finally {
skipShowViewColumnsLoading.value = false