mobility-toolbox-js 2.0.0-beta.42 → 2.0.0-beta.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,7 +109,7 @@ export default class Layer extends BaseObject {
109
109
  }
110
110
  // If children contains layers with group, we display one of them (the last added).
111
111
  if (this.children && this.children.some((child) => !!child.group)) {
112
- const child = this.children
112
+ const child = [...this.children]
113
113
  .reverse()
114
114
  .find((childd) => !!childd.group);
115
115
  child.visible = true;
package/mbt.js CHANGED
@@ -47849,7 +47849,7 @@ uniform ${i3} ${o3} u_${a3};
47849
47849
  this.parent.visible = true;
47850
47850
  }
47851
47851
  if (this.children && this.children.some((child) => !!child.group)) {
47852
- const child = this.children.reverse().find((childd) => !!childd.group);
47852
+ const child = [...this.children].reverse().find((childd) => !!childd.group);
47853
47853
  child.visible = true;
47854
47854
  }
47855
47855
  if (this.children && !this.children.some((child) => !child.group && child.visible)) {