litle improvements
This commit is contained in:
parent
018c36d5f9
commit
155da34c2d
|
@ -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 (
|
||||||
|
|
Loading…
Reference in New Issue