Skip to content

Commit ebb3c74

Browse files
authored
fix: The starting node of the loop in the loop body should be prohibited from deletion (#4287)
1 parent 2298bf6 commit ebb3c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/workflow/common/shortcut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) {
9898
return
9999
}
100100
const nodes = elements.nodes.filter((node) =>
101-
['start-node', 'base-node', 'loop-body-node'].includes(node.type),
101+
['start-node', 'base-node', 'loop-body-node', 'loop-start-node'].includes(node.type),
102102
)
103103
if (nodes.length > 0) {
104104
MsgError(

0 commit comments

Comments
 (0)