From aa30f5c1a3e84acb461e9a782fd783e3b9128edd Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 18 Jan 2021 07:58:03 -0600 Subject: [PATCH] fix: iter --- packages/topdown/src/resources/layers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }