From 1d4cac20af1339276e5241877fa0b1ed0ec44d9e Mon Sep 17 00:00:00 2001 From: shahzad31 Date: Mon, 14 Nov 2022 17:04:21 +0100 Subject: [PATCH] update types --- .../monitor_summary/monitor_complete_count.tsx | 4 ++++ .../monitor_summary/monitor_complete_sparklines.tsx | 4 ++++ .../monitor_summary/monitor_total_runs_count.tsx | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/monitor_complete_count.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/monitor_complete_count.tsx index 7740ba9ce0670e..fd2e9f5f1b2bc3 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/monitor_complete_count.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/monitor_complete_count.tsx @@ -23,6 +23,10 @@ export const MonitorCompleteCount = (props: MonitorCompleteCountProps) => { const monitorId = useMonitorQueryId(); + if (!monitorId) { + return null; + } + return ( { const { euiTheme } = useEuiTheme(); + if (!monitorId) { + return null; + } + return ( { const monitorId = useMonitorQueryId(); + if (!monitorId) { + return null; + } + return (