Skip to content

Commit

Permalink
Apply code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
federico-ercoles committed Sep 21, 2023
1 parent 4c41f94 commit 1ff9df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bento-design-system/src/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export function Table<
() =>
headerGroups[0].headers
.filter((h) => h.sticky)
.flatMap((h) => h.columns || [h])
.flatMap((h) => h.columns ?? [h])
.map((h) => h.id),
[headerGroups]
);
Expand Down Expand Up @@ -364,7 +364,7 @@ export function Table<
}}
lastLeftSticky={
header.columns
? header.id === stickyLeftColumnGroupsIds[stickyLeftColumnGroupsIds.length - 1]
? header.id === stickyLeftColumnGroupsIds.at(-1)
: index === lastStickyColumnIndex
}
stickyHeaders={stickyHeaders}
Expand Down

0 comments on commit 1ff9df8

Please sign in to comment.