Skip to content

Commit

Permalink
fixup! fixup! feat(Table): support providing selected rows to sync wi…
Browse files Browse the repository at this point in the history
…th external model
  • Loading branch information
meriouma committed Dec 12, 2024
1 parent 3c8ccb5 commit 40a70a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function getSelectionColumn<T extends object>(
delete updatedSelection[row.id];
}

// Select parent when all children was selected, or deselect parent when any child was deselected
// Select parent when all children were selected, or deselect parent when any child was deselected
const allSelectedIds = Object.keys(updatedSelection);
allSelectedIds.forEach((key) => {
const parentRow = table.getRow(key).getParentRow();
Expand Down

0 comments on commit 40a70a2

Please sign in to comment.