mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7640031a50
)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
This commit is contained in:
parent
c05a237944
commit
aae38b447b
1 changed files with 8 additions and 3 deletions
|
@ -40,9 +40,14 @@ const Container: React.FC<Props & ResponsiveWrapperProps> = ({ height }) => {
|
|||
const { loading, pingHistogram: data } = useSelector(selectPingHistogram);
|
||||
|
||||
useEffect(() => {
|
||||
filterCheck(() =>
|
||||
dispatch(getPingHistogram.get({ monitorId, dateStart, dateEnd, query, filters: esKuery }))
|
||||
);
|
||||
if (monitorId) {
|
||||
// we don't need filter check on monitor details page, where we have monitorId defined
|
||||
dispatch(getPingHistogram.get({ monitorId, dateStart, dateEnd, query, filters: esKuery }));
|
||||
} else {
|
||||
filterCheck(() =>
|
||||
dispatch(getPingHistogram.get({ monitorId, dateStart, dateEnd, query, filters: esKuery }))
|
||||
);
|
||||
}
|
||||
}, [filterCheck, dateStart, dateEnd, monitorId, lastRefresh, esKuery, dispatch, query]);
|
||||
return (
|
||||
<PingHistogramComponent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue