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

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


The following commit(s) were added to refs/heads/2.0-prepare by this push:
     new f4d826e  fix DAG environment list error (#6551) (#6552)
f4d826e is described below

commit f4d826eede4874699c3f84b52ee213a9171bdfc3
Author: OS <[email protected]>
AuthorDate: Sat Oct 16 22:54:34 2021 +0800

    fix DAG environment list error (#6551) (#6552)
    
    Co-authored-by: wangyizhi <[email protected]>
---
 .../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>

Reply via email to