Commit c76d7afd authored by Filipa Lacerda's avatar Filipa Lacerda

Fixes typo

Removes unneeded comparision
parent d0552ade
...@@ -89,17 +89,17 @@ ...@@ -89,17 +89,17 @@
toggleFolder(envType) { toggleFolder(envType) {
const environments = this.state.environments; const environments = this.state.environments;
const environmnetsCopy = environments.map((env) => { const environmentsCopy = environments.map((env) => {
if (env['vue-isChildren'] === true && env.name === envType) { if (env['vue-isChildren'] && env.name === envType) {
env.isOpen = !env.isOpen; env.isOpen = !env.isOpen;
} }
return env; 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