docs: code errors in "Updating Node Data" (#1900)
fix(docs): Example of fixing code errors in "Updating Node Data"
This commit is contained in:
@@ -342,8 +342,8 @@ import { useVueFlow } from '@vue-flow/core'
|
|||||||
|
|
||||||
const instance = useVueFlow()
|
const instance = useVueFlow()
|
||||||
|
|
||||||
// use the `updateNodeData` method to update the data of an edge
|
// use the `updateNodeData` method to update the data of an node
|
||||||
instance.updateNodeData(edgeId, { hello: 'mona' })
|
instance.updateNodeData(nodeId, { hello: 'mona' })
|
||||||
|
|
||||||
// find the node in the state by its id
|
// find the node in the state by its id
|
||||||
const node = instance.findNode(nodeId)
|
const node = instance.findNode(nodeId)
|
||||||
|
|||||||
Reference in New Issue
Block a user