Skip to content

Commit

Permalink
Merge pull request #5892 from jtomaszewski/patch-1
Browse files Browse the repository at this point in the history
fix(Datagrid): Let it work even when `selectedIds` is undefined
  • Loading branch information
fzaninotto authored Feb 11, 2021
2 parents 86ec14c + 69d278d commit e716365
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const DatagridBody: FC<DatagridBodyProps> = React.forwardRef(
rowClick,
selectable:
!isRowSelectable || isRowSelectable(data[id]),
selected: selectedIds.includes(id),
selected: selectedIds?.includes(id),
style: rowStyle ? rowStyle(data[id], rowIndex) : null,
},
children
Expand Down

0 comments on commit e716365

Please sign in to comment.