fix loop/iteration incorrect nodes width

This commit is contained in:
hjlarry 2025-10-14 09:54:37 +08:00
parent c0af3414a3
commit 79fb977f10
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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