fix: iter
This commit is contained in:
parent
c42ed8e4fd
commit
aa30f5c1a3
|
@ -44,7 +44,7 @@ export default (latus) => class Layers extends decorate(JsonResource) {
|
|||
allEntities() {
|
||||
const allEntities = [];
|
||||
for (let i = 0; i < this.layers.length; i++) {
|
||||
const layerEntities = this.layers[i].entities;
|
||||
const layerEntities = Object.values(this.layers[i].entities);
|
||||
for (let j = 0; j < layerEntities.length; j++) {
|
||||
allEntities.push(layerEntities[j]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user