|
@@ -76,11 +76,11 @@ const onAddNode = (type) => {
|
|
|
} else {
|
|
|
node.data.edgeSource = `${props.node.id}_end`
|
|
|
}
|
|
|
- props.graph.startBatch('custom-batch-name')
|
|
|
+ props.graph.startBatch('node-add')
|
|
|
props.graph.addNode(handleNode(node))
|
|
|
props.graph.addEdge(handleEdge(edge))
|
|
|
setTimeout(() => {
|
|
|
- props.graph.stopBatch('custom-batch-name')
|
|
|
+ props.graph.stopBatch('node-add')
|
|
|
}, 100)
|
|
|
}
|
|
|
</script>
|