From dd872dba3b4892f10f8729cec7121204be2018d8 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 8 Jul 2024 13:51:56 +0200 Subject: [PATCH] fix: areAllChecksMarked --- src/components/VnTable/VnVisibleColumn.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnVisibleColumn.vue b/src/components/VnTable/VnVisibleColumn.vue index ab9c5d5c360..0f979acd3d3 100644 --- a/src/components/VnTable/VnVisibleColumn.vue +++ b/src/components/VnTable/VnVisibleColumn.vue @@ -23,7 +23,7 @@ const initialUserConfigViewData = ref(); const localColumns = ref([]); const areAllChecksMarked = computed(() => { - return columns.value.every((col) => col.visible); + return localColumns.value.every((col) => col.visible); }); function setUserConfigViewData(data, isLocal) { @@ -38,7 +38,7 @@ function setUserConfigViewData(data, isLocal) { } function toggleMarkAll(val) { - columns.value.forEach((col) => (col.visible = val)); + localColumns.value.forEach((col) => (col.visible = val)); } async function getConfig(url, filter) {