Unverified Commit d79af508 authored by Yichao Yang's avatar Yichao Yang Committed by GitHub
Browse files

[Fix-3077][ui] Fix the edit name duplicated verify (#3346)

parent f27c62a5
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -169,17 +169,12 @@
          this.$emit('onUdp')
        }

        // Edit => direct storage
        if (this.store.state.dag.name) {
          _verif()
        } else {
          // New First verify that the name exists
        // verify that the name exists
        this.store.dispatch('dag/verifDAGName', this.name).then(res => {
          _verif()
        }).catch(e => {
          this.$message.error(e.msg || '')
        })
        }
      },
      /**
       * Close the popup