diff --git a/src/components/cases/documents-tab.tsx b/src/components/cases/documents-tab.tsx index c17aed4..5cbbe3c 100644 --- a/src/components/cases/documents-tab.tsx +++ b/src/components/cases/documents-tab.tsx @@ -389,8 +389,9 @@ export function CaseDocumentsTab({ caseId }: { caseId: string }) { ); })(); - const performMove = async () => { - const dest = moveDest; // "" = root + const performMove = async (destArg?: string) => { + const raw = destArg ?? moveDest; + const dest = raw === "__root__" ? "" : raw; // "" = root // Move folders for (const full of selectedFolders) { const name = full.split("/").pop() || full; @@ -648,11 +649,7 @@ export function CaseDocumentsTab({ caseId }: { caseId: string }) {