diff --git a/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx b/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx index b92a78bd..8e2497ec 100644 --- a/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx +++ b/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx @@ -53,8 +53,9 @@ const DemandContextProvider: React.FC> = (props) => setDemandProps(result); } catch (error) { console.error('Error fetching demands:', error); + console.log(demands) } - }, [demands]); + }, []); useEffect(() => { fetchDemandProps();