move code
This commit is contained in:
parent
008e6b5d36
commit
1c2a03ba5e
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue