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 ff297957c7
commit 7e5d6ef9b6

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 {