Web: Client: Data import. bug fixed user not found not reset

This commit is contained in:
Elyor Djalilov 2024-04-15 13:18:16 +05:00
parent d2e18a6d84
commit 20dfdf433e
2 changed files with 3 additions and 2 deletions

View File

@ -200,7 +200,7 @@ const SelectFileStep = ({
uploadInterval.current = setInterval(async () => {
try {
const res = await getMigrationStatus();
setProgress(res.progress);
setProgress(res?.progress);
if (res.progress > 10) {
setIsVisible(false);
@ -233,6 +233,7 @@ const SelectFileStep = ({
) {
setUsers(res.parseResult);
setShowReminder(true);
setIsBackupEmpty(false);
} else {
setIsBackupEmpty(true);
cancelMigration();

View File

@ -187,7 +187,7 @@ const SelectFileStep = ({
uploadInterval.current = setInterval(async () => {
try {
const res = await getMigrationStatus();
setProgress(res.progress);
setProgress(res?.progress);
if (res.progress > 10) {
setIsVisible(false);