From 4b9015e45e1378665f589cff95b7e8ddb94422f8 Mon Sep 17 00:00:00 2001 From: David Inga Date: Thu, 21 Mar 2024 11:23:06 +0100 Subject: [PATCH] disabling tree data node in all filters --- client/src/components/tree-select/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/tree-select/utils.ts b/client/src/components/tree-select/utils.ts index 60a0e4e36..3fab069b7 100644 --- a/client/src/components/tree-select/utils.ts +++ b/client/src/components/tree-select/utils.ts @@ -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, });