mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:45:07 +00:00
Merge pull request #3493 from nocodb/fix/gui-v2-form-view-hide-field
fix(gui-v2): add reloadEventHook.trigger() to get the latest localColumn value
This commit is contained in:
@@ -202,7 +202,8 @@ function hideColumn(idx: number) {
|
||||
},
|
||||
idx,
|
||||
)
|
||||
;(localColumns.value[idx] as any).show = false
|
||||
|
||||
reloadEventHook.trigger()
|
||||
|
||||
$e('a:form-view:hide-columns')
|
||||
}
|
||||
|
||||
@@ -127,8 +127,8 @@ export function useViewColumns(view: Ref<ViewType> | undefined, meta: ComputedRe
|
||||
return column
|
||||
})
|
||||
|
||||
await loadViewColumns()
|
||||
reloadData?.()
|
||||
return
|
||||
}
|
||||
|
||||
if (isUIAllowed('fieldsSync')) {
|
||||
@@ -143,7 +143,7 @@ export function useViewColumns(view: Ref<ViewType> | undefined, meta: ComputedRe
|
||||
return insertedField
|
||||
}
|
||||
}
|
||||
|
||||
await loadViewColumns()
|
||||
reloadData?.()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user