From c6c4d20a2e2e7a371906aa740f81b9961af2a0dc Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 9 Oct 2024 04:30:48 +1100 Subject: [PATCH] [8.x] [Synthetics] Fix ping heatmap payload (#195107) (#195439) # Backport This will backport the following commits from `main` to `8.x`: - [[Synthetics] Fix ping heatmap payload (#195107)](https://github.com/elastic/kibana/pull/195107) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Justin Kambic --- .../monitor_details/monitor_status/use_monitor_status_data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_details/monitor_status/use_monitor_status_data.ts b/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_details/monitor_status/use_monitor_status_data.ts index efb001f1776b7..8eaa80fb44a53 100644 --- a/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_details/monitor_status/use_monitor_status_data.ts +++ b/x-pack/plugins/observability_solution/synthetics/public/apps/synthetics/components/monitor_details/monitor_status/use_monitor_status_data.ts @@ -93,7 +93,7 @@ export const useMonitorStatusData = ({ from, to, initialSizeRef }: Props) => { useDebounce( async () => { - setDebouncedCount(binsAvailableByWidth); + setDebouncedCount(binsAvailableByWidth === 0 ? null : binsAvailableByWidth); }, 500, [binsAvailableByWidth]