mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-29 00:24:39 +01:00
refac
This commit is contained in:
@@ -110,17 +110,19 @@
|
||||
cancelDownload();
|
||||
return;
|
||||
}
|
||||
downloading = true;
|
||||
syncing = true;
|
||||
|
||||
// Get total count first
|
||||
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(() => {
|
||||
return null;
|
||||
});
|
||||
const _res = await exportChatStats(localStorage.token, 1, eventData?.searchParams ?? {}).catch(
|
||||
() => {
|
||||
return null;
|
||||
}
|
||||
);
|
||||
if (_res) {
|
||||
total = _res.total;
|
||||
}
|
||||
|
||||
downloading = true;
|
||||
syncing = true;
|
||||
processedItemsCount = 0;
|
||||
const resVersion = await getVersion(localStorage.token).catch(() => {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user