Browse Source

fix(gui-v2): reload data after system field toggle

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
7f3e92d63f
  1. 10
      packages/nc-gui-v2/composables/useViewColumns.ts

10
packages/nc-gui-v2/composables/useViewColumns.ts

@ -99,10 +99,12 @@ export function useViewColumns(
},
set(v) {
if (view?.value?.id) {
$api.dbView.update(view.value.id, {
// todo: update swagger
show_system_fields: v,
} as any)
$api.dbView
.update(view.value.id, {
// todo: update swagger
show_system_fields: v,
} as any)
.finally(() => reloadData?.())
;(view.value as any).show_system_fields = v
}
},

Loading…
Cancel
Save