Merge pull request #261 from ONLYOFFICE/bugfix/restore-progress
Web: Fixed progress.
This commit is contained in:
commit
ba95ddf326
@ -145,13 +145,6 @@ const PreparationPortal = (props) => {
|
||||
returnToPortal();
|
||||
}
|
||||
} catch (error) {
|
||||
const status = err?.response?.status;
|
||||
const needCreationTableTime = status === 404;
|
||||
|
||||
if (needCreationTableTime) {
|
||||
return;
|
||||
}
|
||||
|
||||
clearAllIntervals();
|
||||
setErrorMessage(error);
|
||||
}
|
||||
@ -194,13 +187,21 @@ const PreparationPortal = (props) => {
|
||||
|
||||
setPercent(progress);
|
||||
} catch (err) {
|
||||
const status = err?.response?.status;
|
||||
const needCreationTableTime = status === 404;
|
||||
|
||||
if (needCreationTableTime) {
|
||||
getRecoveryProgress();
|
||||
return;
|
||||
}
|
||||
|
||||
setErrorMessage(errorMessage(err));
|
||||
}
|
||||
};
|
||||
useEffect(() => {
|
||||
setTimeout(() => {
|
||||
getRecoveryProgress();
|
||||
}, 4000);
|
||||
}, 6000);
|
||||
|
||||
return () => {
|
||||
clearAllIntervals();
|
||||
|
Loading…
Reference in New Issue
Block a user