mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix checkpoints being deleted if fileHost is unavailable
This commit is contained in:
parent
1e0b400878
commit
36ab3737ad
@ -2811,9 +2811,11 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null
|
||||
file: fileType
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
// Checkpoint error: load the previous one
|
||||
deleteLastCp(i);
|
||||
if (err === "DECRYPTION_ERROR" || err === "E_METADATA_DECRYPTION") {
|
||||
deleteLastCp(i);
|
||||
}
|
||||
i = i || 0;
|
||||
loadDocument(noCp, useNewDefault, ++i, cb);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user