From 8a0b664b1374327ee20154a2980967621a42109a Mon Sep 17 00:00:00 2001 From: solderq35 Date: Sat, 30 Dec 2023 22:14:31 -0800 Subject: [PATCH] more consistent syntax --- src/components/map/map_compareside.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/map/map_compareside.vue b/src/components/map/map_compareside.vue index f76d3f04..c5b7bcf6 100644 --- a/src/components/map/map_compareside.vue +++ b/src/components/map/map_compareside.vue @@ -116,9 +116,9 @@ export default { buildingBlocks: { get () { let buildingBlockArray = [] - for (let i in this.buildings) { + for (let building of this.buildings) { // Use spread syntax (...) to create an array of objects, instead of 2d array - buildingBlockArray.push(...this.$store.getters[this.buildings[i].path + '/blocks']) + buildingBlockArray.push(...this.$store.getters[building.path + '/blocks']) } return buildingBlockArray }