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,