Skip to content

Commit

Permalink
Switch is selected check to account for multiple rows just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Oct 2, 2024
1 parent 000e304 commit 2c2ee04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const RichTextCell = ({
{ current: api },
(state: GridState) => state.rowSelection
);
const isExpanded = selectedRows[0] === id;
const isExpanded = selectedRows.includes(id);

if (!value) return null;

Expand Down

0 comments on commit 2c2ee04

Please sign in to comment.