feat: workflow add note node (#5164)
This commit is contained in:
parent
d7fbae286a
commit
c28d709d7f
69 changed files with 2375 additions and 169 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue