From 23bda81626f37e3ec07d25dbd9e7b7125d67b057 Mon Sep 17 00:00:00 2001 From: Maximilian Giller <m.giller@tu-bs.de> Date: Sun, 28 Aug 2022 18:52:24 +0200 Subject: [PATCH] Fixes history not updating immediately on node added --- src/editor/js/components/editor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx index eb0e9cd..ab1d5a9 100644 --- a/src/editor/js/components/editor.tsx +++ b/src/editor/js/components/editor.tsx @@ -173,6 +173,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { (newNode as any).vy = 0; newNode.add(this.state.graph); + this.forceUpdate(); } /** -- GitLab