Skip to content

Commit b5c4c0e

Browse files
authored
docs: code errors in "Updating Node Data" (#1900)
fix(docs): Example of fixing code errors in "Updating Node Data"
1 parent 447b2b0 commit b5c4c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/guide/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ import { useVueFlow } from '@vue-flow/core'
342342

343343
const instance = useVueFlow()
344344

345-
// use the `updateNodeData` method to update the data of an edge
346-
instance.updateNodeData(edgeId, { hello: 'mona' })
345+
// use the `updateNodeData` method to update the data of an node
346+
instance.updateNodeData(nodeId, { hello: 'mona' })
347347

348348
// find the node in the state by its id
349349
const node = instance.findNode(nodeId)

0 commit comments

Comments
 (0)