diff --git a/webapp/src/components/App/Studies/StudiesList/index.tsx b/webapp/src/components/App/Studies/StudiesList/index.tsx index dba3866d98..2be733bf91 100644 --- a/webapp/src/components/App/Studies/StudiesList/index.tsx +++ b/webapp/src/components/App/Studies/StudiesList/index.tsx @@ -87,6 +87,7 @@ function StudiesList(props: StudiesListProps) { const [selectionMode, setSelectionMode] = useState(false); const [confirmFolderScan, setConfirmFolderScan] = useState(false); const [isRecursiveScan, setIsRecursiveScan] = useState(false); + const scanDisabled: boolean = !!folder && folder.startsWith("root/default"); useEffect(() => { setFolderList(folder.split("/")); @@ -267,7 +268,7 @@ function StudiesList(props: StudiesListProps) { {folder !== "root" && ( - setConfirmFolderScan(true)}> + setConfirmFolderScan(true)} disabled={scanDisabled}>