Skip to content
Snippets Groups Projects
Commit 88b4b432 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Fixed graph edits transfering into history

parent 805f273b
No related branches found
No related tags found
No related merge requests found
Pipeline #57132 passed
......@@ -439,7 +439,7 @@ export class Editor extends React.PureComponent<any, stateTypes> {
private loadGraphFromCheckpoint(checkpoint: Checkpoint<SimGraphData>) {
const graph = new DynamicGraph();
graph.fromSerializedObject(checkpoint.data);
graph.fromSerializedObject(JSON.parse(JSON.stringify(checkpoint.data)));
// Transfer checkpoints to new graph object
graph.history.copyCheckpointsFromHistory(this.state.graph.history);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment