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

Fixes history not updating immediately on node added

parent 6be82021
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56888 passed
...@@ -173,6 +173,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { ...@@ -173,6 +173,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
(newNode as any).vy = 0; (newNode as any).vy = 0;
newNode.add(this.state.graph); newNode.add(this.state.graph);
this.forceUpdate();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment