litle improvements

This commit is contained in:
João Mendes 2020-07-09 21:33:26 +01:00
parent 018c36d5f9
commit 155da34c2d
1 changed files with 2 additions and 1 deletions

View File

@ -280,6 +280,7 @@ export const OrganizationChart: React.FunctionComponent<IOrganizationChartProps>
} }
const _interval = props.refreshInterval * 60000; const _interval = props.refreshInterval * 60000;
_timerId = setInterval(async () => { _timerId = setInterval(async () => {
console.log("cheching new status... ", new Date());
const newPresenceStatus = await getPresenceStatus( const newPresenceStatus = await getPresenceStatus(
_managersList, _managersList,
_reportsList, _reportsList,
@ -309,7 +310,7 @@ export const OrganizationChart: React.FunctionComponent<IOrganizationChartProps>
}); });
} }
})(); })();
}, [props]); }, [props.title, props.refreshInterval]);
// Render component // Render component
return ( return (