| | |
| | | } from './store' |
| | | import { WorkflowHistoryEvent, useNodesInteractions, useWorkflowHistory } from './hooks' |
| | | import { CUSTOM_NODE } from './constants' |
| | | import { getIterationStartNode, getLoopStartNode } from './utils' |
| | | import { getIterationStartNode } from './utils' |
| | | import CustomNode from './nodes' |
| | | import CustomNoteNode from './note-node' |
| | | import { CUSTOM_NOTE_NODE } from './note-node/constants' |
| | |
| | | }) |
| | | if (candidateNode.data.type === BlockEnum.Iteration) |
| | | draft.push(getIterationStartNode(candidateNode.id)) |
| | | |
| | | if (candidateNode.data.type === BlockEnum.Loop) |
| | | draft.push(getLoopStartNode(candidateNode.id)) |
| | | }) |
| | | setNodes(newNodes) |
| | | if (candidateNode.type === CUSTOM_NOTE_NODE) |