From b5c4c0e3f5b595e2cbb99968f1ccb826d94338ce Mon Sep 17 00:00:00 2001 From: J Date: Sat, 19 Jul 2025 04:57:05 +0800 Subject: [PATCH] docs: code errors in "Updating Node Data" (#1900) fix(docs): Example of fixing code errors in "Updating Node Data" --- docs/src/guide/node.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)