diff --git a/docs/src/guide/node.md b/docs/src/guide/node.md index c513ce31..05e43a2f 100644 --- a/docs/src/guide/node.md +++ b/docs/src/guide/node.md @@ -342,8 +342,8 @@ import { useVueFlow } from '@vue-flow/core' const instance = useVueFlow() -// use the `updateNodeData` method to update the data of an edge -instance.updateNodeData(edgeId, { hello: 'mona' }) +// use the `updateNodeData` method to update the data of an node +instance.updateNodeData(nodeId, { hello: 'mona' }) // find the node in the state by its id const node = instance.findNode(nodeId)