remove reload from cancelling logic

This commit is contained in:
Abhinav 2022-08-29 11:35:18 +05:30
parent 5e7473e966
commit a0feb50bff

View file

@ -19,7 +19,6 @@ import { CustomError } from 'utils/error';
import { Collection } from 'types/collection';
import { SetLoading, SetFiles } from 'types/gallery';
import { ElectronFile, FileWithCollection } from 'types/upload';
import Router from 'next/router';
import { isCanvasBlocked } from 'utils/upload/isCanvasBlocked';
import { downloadApp, waitAndRun } from 'utils/common';
import watchFolderService from 'services/watchFolder/watchFolderService';
@ -548,7 +547,6 @@ export default function Uploader(props: Props) {
ImportService.cancelRemainingUploads();
}
props.setUploadInProgress(false);
Router.reload();
};
const handleUpload = (type) => () => {