fix: iter

This commit is contained in:
cha0s 2021-01-18 07:58:03 -06:00
parent c42ed8e4fd
commit aa30f5c1a3

View File

@ -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]);
}