Index: src/stock-on-hand-mobile/stock-on-hand-app.jsx =================================================================== diff -u -N -r95eac7091708c61fd9b3e5bc296833980ea73812 -r70261f5c7613f4d536564b3f96b1a73980da3ec5 --- src/stock-on-hand-mobile/stock-on-hand-app.jsx (.../stock-on-hand-app.jsx) (revision 95eac7091708c61fd9b3e5bc296833980ea73812) +++ src/stock-on-hand-mobile/stock-on-hand-app.jsx (.../stock-on-hand-app.jsx) (revision 70261f5c7613f4d536564b3f96b1a73980da3ec5) @@ -65,13 +65,13 @@ }); return result; - } + }; const getFacilityById = (facilities, id) => { return facilities.filter(function(facility) { return facility.id === id; })[0]; - } + }; const getSupervisedFacilities = (programId, permissions, facilities) => { const facilityIds = []; @@ -97,13 +97,13 @@ }); return result; - } + }; const dispatchData = (actions) => { actions.forEach((action) => { dispatch(action); - }) - } + }); + }; useEffect(() => { facilityFactory.getUserHomeFacility().then((facility) => { @@ -127,8 +127,6 @@ setSupervisedFacilitiesStockOnHand(supervisedFacilities) ]); - }).catch((error) => { - console.log(error); }); }); } ,[facilityFactory]); @@ -144,18 +142,21 @@ hashType='hashbang' > - + { userHomeFacilityStore && - } - + { userHomeFacilityStore && - + }