Skip to content

Commit

Permalink
[PR] Fixed FullScreen comparison bug (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-egge authored Dec 28, 2023
1 parent e0f422f commit 7668336
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/components/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,18 @@ export default {
try {
if (this.building_compare_error === false) {
let path = this.$store.getters['map/building'](this.compareStories[0]).path
let mgId = this.$store.getters[path + '/primaryGroup']('Electricity').id
let blockSpace = this.$store.getters[path + '/block'](mgId).path
await this.$store.dispatch(blockSpace + '/removeAllModifiers')
await this.$store.dispatch(blockSpace + '/addModifier', 'building_compare')
await this.$store.dispatch(blockSpace + '/updateModifier', {
name: 'building_compare',
data: {
buildingIds: this.compareStories
}
})
if (target === 'q') {
let mgId = this.$store.getters[path + '/primaryGroup']('Electricity').id
let blockSpace = this.$store.getters[path + '/block'](mgId).path
await this.$store.dispatch(blockSpace + '/removeAllModifiers')
await this.$store.dispatch(blockSpace + '/addModifier', 'building_compare')
await this.$store.dispatch(blockSpace + '/updateModifier', {
name: 'building_compare',
data: {
buildingIds: this.compareStories
}
})
window.vue.$store.dispatch('modalController/openModal', {
name: 'map_compare_side',
path: path
Expand Down

0 comments on commit 7668336

Please sign in to comment.