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) => {
try {
const token = getToken();
closeModal();
progressBarProps.setPercentComplete(0);
setProgressView(true);
closeModal();
await UploadService.uploadFiles(
acceptedFiles,
collectionAndItsLatestFile,