From 1c2a03ba5ec625cb5d106662b5c25ceba3196398 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Tue, 16 Aug 2022 19:41:11 +0530 Subject: [PATCH] move code --- src/components/Upload/Uploader.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Upload/Uploader.tsx b/src/components/Upload/Uploader.tsx index cb360aa05..a1a2a82ad 100644 --- a/src/components/Upload/Uploader.tsx +++ b/src/components/Upload/Uploader.tsx @@ -112,6 +112,11 @@ export default function Uploader(props: Props) { const closeUploadProgress = () => setUploadProgressView(false); + const setCollectionName = (collectionName: string) => { + isPendingDesktopUpload.current = true; + pendingDesktopUploadCollectionName.current = collectionName; + }; + useEffect(() => { UploadManager.initUploader( { @@ -141,11 +146,6 @@ export default function Uploader(props: Props) { } }, []); - const setCollectionName = (collectionName: string) => { - isPendingDesktopUpload.current = true; - pendingDesktopUploadCollectionName.current = collectionName; - }; - useEffect(() => { if ( props.electronFiles?.length > 0 ||