fix(web): loop & iteration history

This commit is contained in:
zhaoying
2026-04-27 15:00:49 +08:00
parent 610ae27cf9
commit 8baa466b31
7 changed files with 20 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ const PortClickHandler: React.FC<PortClickHandlerProps> = ({ graph }) => {
// Handle node selection from popover menu and create new node with edge connection
const handleNodeSelect = (selectedNodeType: any) => {
if (!sourceNode || !graph) return;
graph.startBatch('add-node');
const sourceNodeData = sourceNode.getData();
const sourceNodeType = sourceNodeData?.type;
@@ -308,6 +309,7 @@ const PortClickHandler: React.FC<PortClickHandlerProps> = ({ graph }) => {
if (tgt?.isNode()) tgt.toFront();
});
}
graph.stopBatch('add-node');
}, 50);
// Clean up temporary element