From 5c0b83a0a3ef03025728beeea313fbb45c21f0e2 Mon Sep 17 00:00:00 2001 From: Sirttas Date: Thu, 16 Nov 2023 18:48:48 +0100 Subject: [PATCH] fix showColumn --- src/components/table/sort.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/table/sort.ts b/src/components/table/sort.ts index 64b5927..22dff76 100644 --- a/src/components/table/sort.ts +++ b/src/components/table/sort.ts @@ -14,7 +14,7 @@ export const useSort = (array: MaybeRefOrGetter, options?: UseSortOption sortKey.value = key; sortDirection.value = direction; }; - const showColumn = (sortKey: string) => toValue(options?.ignoredColums)?.includes(sortKey) ?? true; + const showColumn = (sortKey: string) => !toValue(options?.ignoredColums)?.includes(sortKey); const headerProps = computed(() => ({ onSort: sortBy, showColumn, currentSortKey: sortKey.value,