From 86ccbecc47b59f637957f1601734f1b67d736bbd Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 11 Dec 2024 09:27:45 +0100 Subject: [PATCH] fix(VnVisibleColumn): fix when is null is visible --- src/components/VnTable/VnTable.vue | 4 +++- src/components/VnTable/VnVisibleColumn.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index ea7cf1dda..9ab080276 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -162,7 +162,9 @@ onMounted(() => { : $props.defaultMode; stateStore.rightDrawer = quasar.screen.gt.xs; columnsVisibilitySkipped.value = [ - ...splittedColumns.value.columns.filter((c) => !c.visible).map((c) => c.name), + ...splittedColumns.value.columns + .filter((c) => c.visible === false) + .map((c) => c.name), ...['tableActions'], ]; createForm.value = $props.create; diff --git a/src/components/VnTable/VnVisibleColumn.vue b/src/components/VnTable/VnVisibleColumn.vue index f5c3458cd..dad950d73 100644 --- a/src/components/VnTable/VnVisibleColumn.vue +++ b/src/components/VnTable/VnVisibleColumn.vue @@ -152,7 +152,7 @@ onMounted(async () => {