diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 14:18:03 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 14:18:03 +0300 |
commit | c76d7afdf6e2575e6170928570dc35d386842042 (patch) | |
tree | a9a053b8095c005d84913c5e69ebe2e827834a6e /app | |
parent | d0552ade9882ebbd247f65812b17b2f01776eaa5 (diff) |
Fixes typo
Removes unneeded comparision
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/environments/stores/environments_store.js.es6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/environments/stores/environments_store.js.es6 b/app/assets/javascripts/environments/stores/environments_store.js.es6 index 928786f0741..83bbc0145de 100644 --- a/app/assets/javascripts/environments/stores/environments_store.js.es6 +++ b/app/assets/javascripts/environments/stores/environments_store.js.es6 @@ -89,17 +89,17 @@ toggleFolder(envType) { const environments = this.state.environments; - const environmnetsCopy = environments.map((env) => { - if (env['vue-isChildren'] === true && env.name === envType) { + const environmentsCopy = environments.map((env) => { + if (env['vue-isChildren'] && env.name === envType) { env.isOpen = !env.isOpen; } return env; }); - this.state.environments = environmnetsCopy; + this.state.environments = environmentsCopy; - return environmnetsCopy; + return environmentsCopy; }, /** |