diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 57358447bf..a006356187 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -662,7 +662,7 @@ } const index = hashTree.findIndex(d => d.resourceId === row.resourceId); if (index != -1) { - hashTree.splice(index, 0, obj); + hashTree.splice(index+1, 0, obj); } else { hashTree.push(obj); }