Skip to content

Commit

Permalink
fix: prevent deselection of required table column items (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
polikashina authored Apr 12, 2024
1 parent 31c22e8 commit a69050c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,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 a69050c

Please sign in to comment.