Skip to content

Commit

Permalink
Merge pull request #5832 from matuzalemsteles/fix-alwaysVisibleColumns
Browse files Browse the repository at this point in the history
fix(@clayui/table): fixes bug when hiding all columns
  • Loading branch information
matuzalemsteles authored Jun 10, 2024
2 parents 6ad5bb5 + 27d0aee commit 76cb590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/clay-core/src/table/Head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ function HeadInner<T extends Record<string, any>>(
visibleColumns.has(
item
) &&
visibleColumns.size ===
visibleColumns.size -
alwaysVisibleColumns.size ===
1
}
onChange={(event) => {
Expand Down

0 comments on commit 76cb590

Please sign in to comment.