mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 15:01:04 +08:00
fix loop/iteration incorrect nodes width
This commit is contained in:
parent
c0af3414a3
commit
79fb977f10
@ -26,7 +26,9 @@ export const useNodeIterationInteractions = () => {
|
||||
const { nodes, setNodes } = collaborativeWorkflow.getState()
|
||||
|
||||
const currentNode = nodes.find(n => n.id === nodeId)!
|
||||
const childrenNodes = nodes.filter(n => n.parentId === nodeId)
|
||||
const childrenNodes = nodes.filter(n => n.parentId === nodeId && n.type !== CUSTOM_ITERATION_START_NODE)
|
||||
if (!childrenNodes.length)
|
||||
return
|
||||
let rightNode: Node
|
||||
let bottomNode: Node
|
||||
|
||||
|
||||
@ -22,7 +22,9 @@ export const useNodeLoopInteractions = () => {
|
||||
const handleNodeLoopRerender = useCallback((nodeId: string) => {
|
||||
const { nodes, setNodes } = collaborativeWorkflow.getState()
|
||||
const currentNode = nodes.find(n => n.id === nodeId)!
|
||||
const childrenNodes = nodes.filter(n => n.parentId === nodeId)
|
||||
const childrenNodes = nodes.filter(n => n.parentId === nodeId && n.type !== CUSTOM_LOOP_START_NODE)
|
||||
if (!childrenNodes.length)
|
||||
return
|
||||
let rightNode: Node
|
||||
let bottomNode: Node
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user