Commit c76d7afd authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes typo

Removes unneeded comparision
parent d0552ade
......@@ -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;
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment