Browse Source

fixBug('#6172') Dag node name value judgment error (#6175)

Co-authored-by: xiangcaibiao <caibiao.xiang@sinocare.com>
2.0.7-release
break60 3 years ago committed by GitHub
parent
commit
6aafa81aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

2
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

@ -695,7 +695,7 @@
} }
// Name repeat depends on dom backfill dependent store // Name repeat depends on dom backfill dependent store
const tasks = this.store.state.dag.tasks const tasks = this.store.state.dag.tasks
const task = tasks.find((t) => t.name === 'this.name') const task = tasks.find((t) => t.name === this.name)
if (task) { if (task) {
this.$message.warning(`${i18n.$t('Name already exists')}`) this.$message.warning(`${i18n.$t('Name already exists')}`)
return false return false

Loading…
Cancel
Save