diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue
index 474d867401..2f37b8fd16 100644
--- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue
+++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue
@@ -43,7 +43,7 @@
-
+
{{ $t("commons.import_variable") }}
@@ -171,7 +171,7 @@
-
+
@@ -269,8 +269,9 @@ export default {
this.variables.splice(sameNameIndex, 1, importData);
}
} else {
- this.variables.splice(this.variables.length - 1, 0, importData);
+ this.variables.splice(this.variables.length, 0, importData);
}
+ this.sortParameters();
})
},
exportVariable() {