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])); } }