diff --git a/samples/react-modern-organization-chart/src/components/OrganizationChart/OrganizationChart.tsx b/samples/react-modern-organization-chart/src/components/OrganizationChart/OrganizationChart.tsx index 91b719a73..9e2d1bd45 100644 --- a/samples/react-modern-organization-chart/src/components/OrganizationChart/OrganizationChart.tsx +++ b/samples/react-modern-organization-chart/src/components/OrganizationChart/OrganizationChart.tsx @@ -280,6 +280,7 @@ export const OrganizationChart: React.FunctionComponent } const _interval = props.refreshInterval * 60000; _timerId = setInterval(async () => { + console.log("cheching new status... ", new Date()); const newPresenceStatus = await getPresenceStatus( _managersList, _reportsList, @@ -309,7 +310,7 @@ export const OrganizationChart: React.FunctionComponent }); } })(); - }, [props]); + }, [props.title, props.refreshInterval]); // Render component return (