feat: refine node deletion logic to protect only start nodes
This commit is contained in:
@@ -64,7 +64,7 @@ export function useFlowgramEditorProps({
|
||||
},
|
||||
canDeleteNode: (_ctx, node) => {
|
||||
const type = String(node.flowNodeType ?? "")
|
||||
return type !== "start" && type !== "end"
|
||||
return type !== "start"
|
||||
},
|
||||
canDeleteLine: () => !readonly,
|
||||
onContentChange: (ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user