From 1dfc7a937c26cb816a861c3554d8d9f2718c1259 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Thu, 7 Nov 2024 18:58:02 +0530 Subject: [PATCH] Improved: current facility was updated to primaryFacilityGroupId='' only when the updateFacility API was successful(#304) --- src/components/ProductStorePopover.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ProductStorePopover.vue b/src/components/ProductStorePopover.vue index ceef80d..85b535f 100644 --- a/src/components/ProductStorePopover.vue +++ b/src/components/ProductStorePopover.vue @@ -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 {