From 7f3e92d63f9f14478315197dd6b2e51817923d2b Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sun, 7 Aug 2022 23:40:10 +0530 Subject: [PATCH] fix(gui-v2): reload data after system field toggle Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useViewColumns.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui-v2/composables/useViewColumns.ts b/packages/nc-gui-v2/composables/useViewColumns.ts index 44d62505c8..4bfe8e52c0 100644 --- a/packages/nc-gui-v2/composables/useViewColumns.ts +++ b/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 } },