fix: webdav refreshes data and clears the original data when an error occurs.

This commit is contained in:
huzibaca 2024-11-17 23:50:34 +08:00
parent 2028c189aa
commit 67bb242778

View File

@ -58,6 +58,8 @@ export const BackupViewer = forwardRef<DialogRef>((props, ref) => {
setBackupFiles(files);
setTotal(files.length);
} catch (error) {
setBackupFiles([]);
setTotal(0);
console.error(error);
// Notice.error(t("Failed to fetch backup files"));
} finally {