Skip to content

Commit

Permalink
Merge pull request #149 from disha1202/#85zrgfqdj
Browse files Browse the repository at this point in the history
fixed: incorrect facility locations on product detail page(#85zrgfqdj)
  • Loading branch information
dt2patel authored Jan 27, 2023
2 parents 89f8c31 + 6701746 commit a265a80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/components/ProductListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default defineComponent({
props: ["product"],
methods: {
async viewProduct () {
await this.store.dispatch("product/updateCurrentProduct", this.product.sku)
this.router.push({ path: `/count/${this.product.sku}` })
}
},
Expand Down
3 changes: 0 additions & 3 deletions src/views/count.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@
location: ""
}
},
ionViewWillEnter() {
this.store.dispatch("product/updateCurrentProduct", this.$route.params.sku)
},
async mounted(){
await this.getFacilityLocations();
},
Expand Down

0 comments on commit a265a80

Please sign in to comment.