From 5ddf8f6d7804c7f5366fc8846c5fe2f59c3e0075 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 00:27:17 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/cases/documents-tab.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 }) {