Skip to content

Commit

Permalink
Merge pull request #96 from solaoi/fix_not-working-on-rendering
Browse files Browse the repository at this point in the history
fix removal necesarry
  • Loading branch information
solaoi authored May 16, 2022
2 parents 1352e4c + d104af5 commit 527526d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/src/rete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 527526d

Please sign in to comment.