This is an automated email from the ASF dual-hosted git repository.

journey pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new d79af50  [Fix-3077][ui] Fix the edit name duplicated verify (#3346)
d79af50 is described below

commit d79af5080951328b758f926a14dbad2f26c23857
Author: Yichao Yang <[email protected]>
AuthorDate: Thu Jul 30 15:04:57 2020 +0800

    [Fix-3077][ui] Fix the edit name duplicated verify (#3346)
---
 .../src/js/conf/home/pages/dag/_source/udp/udp.vue        | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

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 4acd550..b881a80 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
@@ -169,17 +169,12 @@
           this.$emit('onUdp')
         }
 
-        // Edit => direct storage
-        if (this.store.state.dag.name) {
+        // verify that the name exists
+        this.store.dispatch('dag/verifDAGName', this.name).then(res => {
           _verif()
-        } 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 || '')
-          })
-        }
+        }).catch(e => {
+          this.$message.error(e.msg || '')
+        })
       },
       /**
        * Close the popup

Reply via email to