diff --git a/packages/topdown/src/resources/layers.js b/packages/topdown/src/resources/layers.js index ed15d46..f2033ae 100644 --- a/packages/topdown/src/resources/layers.js +++ b/packages/topdown/src/resources/layers.js @@ -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]); }