mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 05:13:44 +08:00
fix: webdav refreshes data and clears the original data when an error occurs.
This commit is contained in:
parent
2028c189aa
commit
67bb242778
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user