Skip to content

Commit

Permalink
more consistent syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 31, 2023
1 parent dc19461 commit 8a0b664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/map/map_compareside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8a0b664

Please sign in to comment.