feat: workflow add note node (#5164)
This commit is contained in:
@@ -22,7 +22,8 @@ export const useNodeDataUpdate = () => {
|
||||
const newNodes = produce(getNodes(), (draft) => {
|
||||
const currentNode = draft.find(node => node.id === id)!
|
||||
|
||||
currentNode.data = { ...currentNode?.data, ...data }
|
||||
if (currentNode)
|
||||
currentNode.data = { ...currentNode.data, ...data }
|
||||
})
|
||||
setNodes(newNodes)
|
||||
}, [store])
|
||||
|
Reference in New Issue
Block a user