Skip to content

Commit

Permalink
clarify call order
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 19, 2023
1 parent 1af7a01 commit 590c23d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/view/view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export default {
if (this.cards.length > 0 && this.cards[0]) {
console.log(buildings.map(building => building.id))
await this.$store.dispatch(this.cards[0].path + '/removeAllModifiers')
// addModifier and updateModifier below call block.module.js, then building_compare.mod.js
// See addModifier and updateModifier functions in block.module.js code
// and src\store\block.module.js to add new charts to comparison / remove old charts (duplicate chart path triggers error)
// addModifier and updateModifier below call block.module.js, which then calls building_compare.mod.js
// See addModifier and updateModifier functions in block.module.js
// See addCharts and RemoveOldCharts in building_compare.mod.js
await this.$store.dispatch(this.cards[0].path + '/addModifier', 'building_compare')
// buildingIds below defines which buildingId are sent to block.module.js and then building_compare.mod.js,
// which also affects chartSpace naming
// which also affects chartSpace naming (duplicate chart path triggers error)
await this.$store.dispatch(this.cards[0].path + '/updateModifier', {
name: 'building_compare',
data: {
Expand Down

0 comments on commit 590c23d

Please sign in to comment.