mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
fix: workflow route
This commit is contained in:
@ -55,11 +55,14 @@ export const useWorkflow = () => {
|
||||
} = store.getState()
|
||||
e.stopPropagation()
|
||||
|
||||
const newNodes = produce(getNodes(), (draft) => {
|
||||
const nodes = getNodes()
|
||||
|
||||
const newNodes = produce(nodes, (draft) => {
|
||||
const currentNode = draft.find(n => n.id === node.id)!
|
||||
|
||||
currentNode.position = node.position
|
||||
})
|
||||
|
||||
setNodes(newNodes)
|
||||
}, [store])
|
||||
|
||||
|
||||
@ -47,8 +47,6 @@ const Workflow: FC<WorkflowProps> = memo(({
|
||||
const [edges, _, onEdgesChange] = useEdgesState(initialEdges)
|
||||
// const nodesInitialized = useNodesInitialized()
|
||||
|
||||
console.log(nodes)
|
||||
|
||||
const {
|
||||
// handleLayout,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user