show progress bar before closing the collectionSelector modal

This commit is contained in:
Abhinav-grd 2021-02-26 11:46:40 +05:30
parent 11ace7d793
commit b79835f229

View file

@ -16,10 +16,9 @@ function CollectionDropZone({
const upload = async (acceptedFiles) => { const upload = async (acceptedFiles) => {
try { try {
const token = getToken(); const token = getToken();
closeModal();
progressBarProps.setPercentComplete(0); progressBarProps.setPercentComplete(0);
setProgressView(true); setProgressView(true);
closeModal();
await UploadService.uploadFiles( await UploadService.uploadFiles(
acceptedFiles, acceptedFiles,
collectionAndItsLatestFile, collectionAndItsLatestFile,