diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 77c8ca7532..5108b0bb65 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -1177,15 +1177,18 @@ export default { this.getEnvironments(); }, allowDrop(draggingNode, dropNode, dropType) { + if(dropNode.data.disabled){ + return false; + } if (dropType != "inner" && !draggingNode.data.disabled) { if (draggingNode.data.referenced) { - if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted' && !draggingNode.data.disabled) { + if (draggingNode.data.referenced !== 'REF' && draggingNode.data.referenced !== 'Deleted') { return true; } return false; } return true; - } else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1 && !dropNode.data.disabled) { + } else if (dropType === "inner" && ELEMENTS.get(dropNode.data.type).indexOf(draggingNode.data.type) != -1) { if (dropNode.data.referenced) { if (dropNode.data.referenced !== 'REF' && dropNode.data.referenced !== 'Deleted') { return true;