From 155da34c2dfc048a529b30b0c8ecb0f64c7fa1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mendes?= Date: Thu, 9 Jul 2020 21:33:26 +0100 Subject: [PATCH] litle improvements --- .../src/components/OrganizationChart/OrganizationChart.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (