Skip to content

Commit

Permalink
Improved: Fixed popover not closing and corrected the primary store t…
Browse files Browse the repository at this point in the history
…ag display issue(#304)
  • Loading branch information
R-Sourabh committed Sep 23, 2024
1 parent 8950077 commit 93f9591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ProductStorePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default defineComponent({
primaryFacilityGroupId: ''
})
}
await this.store.dispatch('facility/updateCurrentFacility', { ...this.current, primaryFacilityGroupId: '' })
// refetching product stores with updated roles
await this.store.dispatch('facility/getFacilityProductStores', { facilityId: this.facilityId })
} else {
Expand Down Expand Up @@ -119,6 +119,7 @@ export default defineComponent({
// if we does not get shopify shop id for the store then not making product store as primary
if(!shopifyShopId) {
showToast(translate('Failed to make product store primary due to missing Shopify shop'))
popoverController.dismiss()
emitter.emit('dismissLoader')
return;
}
Expand Down

0 comments on commit 93f9591

Please sign in to comment.