refac
This commit is contained in:
@@ -110,17 +110,19 @@
|
|||||||
cancelDownload();
|
cancelDownload();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
downloading = true;
|
||||||
|
syncing = true;
|
||||||
|
|
||||||
// Get total count first
|
// Get total count first
|
||||||
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(() => {
|
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(
|
||||||
return null;
|
() => {
|
||||||
});
|
return null;
|
||||||
|
}
|
||||||
|
);
|
||||||
if (_res) {
|
if (_res) {
|
||||||
total = _res.total;
|
total = _res.total;
|
||||||
}
|
}
|
||||||
|
|
||||||
downloading = true;
|
|
||||||
syncing = true;
|
|
||||||
processedItemsCount = 0;
|
processedItemsCount = 0;
|
||||||
const resVersion = await getVersion(localStorage.token).catch(() => {
|
const resVersion = await getVersion(localStorage.token).catch(() => {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user