diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue
index e6949b33e3fcb2537f71ea0694d1f96d7602038d..8bb0b6664057d24c0d1c60b51c181d52d5cd1272 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue
@@ -82,7 +82,7 @@
{{$t('Cancel')}}
- {{$t('Add')}}
+ {{$t('Add')}}
@@ -169,22 +169,14 @@
this.$emit('onUdp')
}
- // Edit => direct storage
- if (this.store.state.dag.name && this.store.state.dag.name===this.name) {
- _verif()
- } else if (this.store.state.dag.name && this.store.state.dag.name!==this.name) {
+ if (this.store.state.dag.name !== this.name) {
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
}).catch(e => {
this.$message.error(e.msg || '')
})
} else {
- // New First verify that the name exists
- this.store.dispatch('dag/verifDAGName', this.name).then(res => {
- _verif()
- }).catch(e => {
- this.$message.error(e.msg || '')
- })
+ _verif()
}
},
/**