diff --git a/src/store/modules/facility/actions.ts b/src/store/modules/facility/actions.ts index 941875a5..e62249b4 100644 --- a/src/store/modules/facility/actions.ts +++ b/src/store/modules/facility/actions.ts @@ -185,6 +185,7 @@ const actions: ActionTree = { // As inventory channels are fetched while fetching additional facility info // But here we already have additional facility info, so just getting and adding inventory groups to current. const inventoryGroups = rootGetters['util/getInventoryGroups']; + // Creating a key called 'isChecked' for inventory groups already associated with current facility. inventoryGroups.forEach((group: any) => { const isChecked = (current.facilityGroupInfo?.some((facilityGroup: any) => facilityGroup?.facilityGroupId === group.facilityGroupId)) group.isChecked = isChecked ? isChecked : false;