move code

This commit is contained in:
Abhinav 2022-08-16 19:41:11 +05:30
parent 008e6b5d36
commit 1c2a03ba5e

View file

@ -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 ||