From 3724f5d6ce541de57fadc0d1e8b19f5c17ef4e45 Mon Sep 17 00:00:00 2001 From: solderq35 Date: Mon, 18 Dec 2023 15:08:41 -0800 Subject: [PATCH] commit this.comparebuildings log --- src/components/view/view.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/view/view.vue b/src/components/view/view.vue index 68cd5e1d..c86bf465 100644 --- a/src/components/view/view.vue +++ b/src/components/view/view.vue @@ -183,6 +183,7 @@ export default { compareBuildings: { get () { if ( !this.$route.path.includes( 'compare' ) ) return null + console.log( this.$route.params.buildings ) return JSON.parse( decodeURI( this.$route.params.buildings ) ).map( id => this.$store.getters['map/building']( id ) ) } }, @@ -192,7 +193,9 @@ export default { if ( !this.compareBuildings || this.compareBuildings.length === 0 || !this.compareBuildings[0] ) { return [] } + console.log( this.compareBuildings ) let building = this.$store.getters['map/building']( this.compareBuildings[0].id ) + console.log( building ) if ( !building ) return [] let group = this.$store.getters[building.path + '/primaryGroup']( 'Electricity' ) let block = this.$store.getters[building.path + '/block']( group.id )