From c00b6459dc7ee6d3f56ff21dd40083786e5cb78e Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Sun, 5 Oct 2025 18:07:21 +0530 Subject: [PATCH] (fix:upload) set docs --- frontend/src/upload/Upload.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 31fd3818..6d2223d1 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -327,7 +327,7 @@ function Upload({ (doc: Doc) => doc.id && !existingDocIds.has(doc.id), ); if (newDoc) { - dispatch(setSelectedDocs(newDoc)); + dispatch(setSelectedDocs([newDoc])); } }