You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ki...@apache.org on 2021/10/16 14:46:00 UTC

[dolphinscheduler] branch dev updated: fix DAG environment list error (#6551)

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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 4d0869f  fix DAG environment list error (#6551)
4d0869f is described below

commit 4d0869fcc085f7b4d8af2182bb8b16b70ff6482c
Author: wangyizhi <wa...@cmss.chinamobile.com>
AuthorDate: Sat Oct 16 22:45:55 2021 +0800

    fix DAG environment list error (#6551)
---
 .../dag/_source/formModel/_source/relatedEnvironment.vue    | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue
index 25b5bbf..ff5d0da 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/relatedEnvironment.vue
@@ -109,17 +109,10 @@
       }
     },
     created () {
-      let stateEnvironmentList = this.store.state.security.environmentListAll || []
-
-      if (stateEnvironmentList.length && stateEnvironmentList.length > 0) {
-        this.environmentList = stateEnvironmentList
+      this._getEnvironmentAll().then(res => {
+        this.environmentList = res
         this._initEnvironmentOptions(this.workerGroup)
-      } else {
-        this._getEnvironmentAll().then(res => {
-          this.environmentList = res
-          this._initEnvironmentOptions(this.workerGroup)
-        })
-      }
+      })
     }
   }
 </script>