Handle incorrect links and corrupted files

This commit is contained in:
1ilit
2024-09-01 21:14:18 +04:00
parent 47ef0dfa82
commit fcf2251e9b
5 changed files with 10 additions and 5 deletions

View File

@@ -356,6 +356,7 @@ export default function WorkSpace() {
}
} catch (e) {
console.log(e);
setSaveState(State.FAILED_TO_LOAD);
}
},
[
@@ -369,6 +370,7 @@ export default function WorkSpace() {
setTransform,
setRedoStack,
setUndoStack,
setSaveState,
],
);