mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-01 18:35:24 +00:00
Handle incorrect links and corrupted files
This commit is contained in:
@@ -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,
|
||||
],
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user