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 d413f38dd7..c8b706842e 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -128,13 +128,13 @@ }, close() { this.visible = false; + let saveVariables = []; this.variables.forEach(item => { - if (item.name === undefined || item.name === "") { - const index = this.variables.findIndex(d => d.id === item.id); - this.variables.splice(index, 1); + if (item.name && item.name != "") { + saveVariables.push(item); } }) - this.$emit('setVariables', this.variables); + this.$emit('setVariables', saveVariables); }, deleteVariable() { let ids = Array.from(this.selection); diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index 4d5ab0a566..094be233ce 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -184,7 +184,7 @@ this.$set(item, 'selected', false); }) } - this.$success(this.$t('schedule.event_success')); + this.$success(this.$t('organization.integration.successful_operation')); this.refresh(); },