From d1179bb2e8d84ddfb76589014513922a2aad66de Mon Sep 17 00:00:00 2001 From: s-egge Date: Wed, 27 Dec 2023 15:35:40 -0800 Subject: [PATCH] Fixed FullScreen comparison bug --- src/components/map/map.vue | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/map/map.vue b/src/components/map/map.vue index 75db56b3..4ec835c2 100644 --- a/src/components/map/map.vue +++ b/src/components/map/map.vue @@ -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