Skip to content

Commit

Permalink
Improved: current facility was updated to primaryFacilityGroupId='' o…
Browse files Browse the repository at this point in the history
…nly when the updateFacility API was successful(#304)
  • Loading branch information
R-Sourabh committed Nov 7, 2024
1 parent 93f9591 commit 1dfc7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ProductStorePopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export default defineComponent({
facilityId: this.facilityId,
primaryFacilityGroupId: ''
})
await this.store.dispatch('facility/updateCurrentFacility', { ...this.current, 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

0 comments on commit 1dfc7a9

Please sign in to comment.