From 8361ec549a9da1322a920e68319701ac17e73d5c Mon Sep 17 00:00:00 2001 From: Anis SMAIL Date: Tue, 17 Dec 2024 17:30:48 +0100 Subject: [PATCH] fix(build): add forgotten file --- .../App/Studies/StudyTree/index.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/webapp/src/components/App/Studies/StudyTree/index.tsx b/webapp/src/components/App/Studies/StudyTree/index.tsx index 0be6ccb9a8..a5a852a652 100644 --- a/webapp/src/components/App/Studies/StudyTree/index.tsx +++ b/webapp/src/components/App/Studies/StudyTree/index.tsx @@ -101,17 +101,17 @@ function StudyTree() { //////////////////////////////////////////////////////////////// const buildTree = (children: StudyTreeNode[], parentId?: string) => { - return children.map((elm) => { - const id = parentId ? `${parentId}/${elm.name}` : elm.name; + return children.map((child) => { + const id = parentId ? `${parentId}/${child.name}` : child.name; return ( handleTreeItemClick(id, elm)} + label={child.name} + onClick={() => handleTreeItemClick(id, child)} > - {buildTree(elm.children, id)} + {buildTree(child.children, id)} ); }); @@ -121,7 +121,14 @@ function StudyTree() { {buildTree([studiesTree])}