Commit 251d6eb9 authored by Filipa Lacerda's avatar Filipa Lacerda

Improve array clone

parent f2b6ac83
...@@ -121,7 +121,7 @@ class EnvironmentsStore { ...@@ -121,7 +121,7 @@ class EnvironmentsStore {
* @return {Array} * @return {Array}
*/ */
toggleDeployBoard(environmentID) { toggleDeployBoard(environmentID) {
const environments = Object.assign([], this.state.environments); const environments = this.state.environments.slice();
this.state.environments = environments.map((env) => { this.state.environments = environments.map((env) => {
let updated = Object.assign({}, env); let updated = Object.assign({}, env);
......
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