Skip to content

Commit

Permalink
Fixed: facility type not updating issue, and shopifyShopId getting is…
Browse files Browse the repository at this point in the history
…sue (#162)
  • Loading branch information
amansinghbais committed Mar 28, 2024
1 parent 67e1ebb commit 4ab4fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/util/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ const actions: ActionTree<UtilState, RootState> = {
logger.error(error)
}
commit(types.UTIL_SHOPIFY_SHOP_UPDATED, shopifyShops)
return shopifyShops[0].shopifyShopId
return shopifyShops[0]?.shopifyShopId
},

async fetchInventoryGroups({ commit }) {
Expand Down
1 change: 1 addition & 0 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,7 @@ export default defineComponent({
// as default elements within the list. These elements may appear at any index within the list structure.
// Hence to meet requirement we explicitly handling the default nature of RETAIL STORE and WAREHOUSE.
this.facilityTypeId = this.facilityTypeIdOptions['RETAIL_STORE'] ? 'RETAIL_STORE' : this.facilityTypeIdOptions['WAREHOUSE'] ? 'WAREHOUSE' : Object.keys(this.facilityTypeIdOptions)[0]
this.updateFacilityType()
},
async updateFacilityType() {
try {
Expand Down

0 comments on commit 4ab4fe4

Please sign in to comment.