Skip to content

Commit

Permalink
fix: a tiny fix at the Table component
Browse files Browse the repository at this point in the history
  • Loading branch information
moon-ds committed Oct 18, 2023
1 parent de25b7c commit 1eb768f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspaces/tables/src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const Table = ({
updateRowSelectState && updateRowSelectState()(
Object.keys(rowsById)
.reduce((acc: { [key: string]: boolean }, item: string) => {
acc[`${item}`] = true;
acc[item] = true;
return acc;
}, {})
);
Expand Down Expand Up @@ -299,7 +299,7 @@ const Table = ({
/** Toggling the "hover" state for the affected rows */
updateRowSelectState && updateRowSelectState()(
alreadySelectedRows.reduce((acc: { [key: string]: boolean }, item) => {
acc[`${item.id}`] = true
acc[item.id] = true
return acc;
}, {}) || {}
);
Expand Down

0 comments on commit 1eb768f

Please sign in to comment.