From d104af590193dd29a22b1cdc75b3ba8e3f4723c8 Mon Sep 17 00:00:00 2001 From: Kodai Aoyama Date: Mon, 16 May 2022 09:31:32 +0900 Subject: [PATCH] fix removal necesarry --- ui/src/rete.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/src/rete.jsx b/ui/src/rete.jsx index 8f46d09..dcddb85 100644 --- a/ui/src/rete.jsx +++ b/ui/src/rete.jsx @@ -255,6 +255,14 @@ export async function createEditor(container) { return true; }); + editor.on( + "process nodecreated noderemoved connectioncreated connectionremoved", + async () => { + await engine.abort(); + await engine.process(editor.toJSON()); + } + ); + editor.view.resize(); editor.trigger("process"); AreaPlugin.zoomAt(editor, editor.nodes);