fix: The starting node of the loop in the loop body should be prohibited from deletion (#4287)

This commit is contained in:
shaohuzhang1 2025-10-29 16:56:18 +08:00 committed by GitHub
parent 2298bf6992
commit ebb3c74dc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,7 +98,7 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) {
return
}
const nodes = elements.nodes.filter((node) =>
['start-node', 'base-node', 'loop-body-node'].includes(node.type),
['start-node', 'base-node', 'loop-body-node', 'loop-start-node'].includes(node.type),
)
if (nodes.length > 0) {
MsgError(