diff --git a/webapp/src/components/App/Studies/StudyTree/index.tsx b/webapp/src/components/App/Studies/StudyTree/index.tsx index 354082b4de..9a66076740 100644 --- a/webapp/src/components/App/Studies/StudyTree/index.tsx +++ b/webapp/src/components/App/Studies/StudyTree/index.tsx @@ -56,10 +56,8 @@ function StudyTree() { } } // children paths and current element path - let [treeAfterChildrenUpdate, failedPath] = await fetchAndInsertSubfolders( - chidrenPaths, - treeAfterWorkspacesUpdate, - ); + const [treeAfterChildrenUpdate, failedPath] = + await fetchAndInsertSubfolders(chidrenPaths, treeAfterWorkspacesUpdate); if (failedPath.length > 0) { enqueueErrorSnackbar( t("studies.tree.error.failToFetchFolder", {