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) { set(v) {
if (view?.value?.id) { if (view?.value?.id) {
$api.dbView.update(view.value.id, { $api.dbView
// todo: update swagger .update(view.value.id, {
show_system_fields: v, // todo: update swagger
} as any) show_system_fields: v,
} as any)
.finally(() => reloadData?.())
;(view.value as any).show_system_fields = v ;(view.value as any).show_system_fields = v
} }
}, },

Loading…
Cancel
Save