Skip to content

Commit

Permalink
disabling tree data node in all filters
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Mar 21, 2024
1 parent bf9022b commit b8731ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/components/tree-select/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ const optionToTreeData = (
const children = option.children?.map((option) => optionToTreeData(option, render, depth + 1));
return render({
...option,
disabled: true, // added to prevent the node from being selectable only for EUDR demo
style: { paddingLeft: 16 * depth },
children,
});
Expand Down

0 comments on commit b8731ea

Please sign in to comment.