Skip to content

Commit

Permalink
fix: prevent deselection of required table column items
Browse files Browse the repository at this point in the history
  • Loading branch information
polikashina committed Apr 12, 2024
1 parent 0152182 commit 2b2636a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export const TableColumnSetup = (props: TableColumnSetupProps) => {
setItems((prevItems) => {
return prevItems.map((item) => ({
...item,
isSelected: selectedItemsIds.includes(item.id),
isSelected: item.isRequired || selectedItemsIds.includes(item.id),
}));
});
};
Expand Down

0 comments on commit 2b2636a

Please sign in to comment.