diff --git a/Dashboard/src/Components/Metrics/MetricView.tsx b/Dashboard/src/Components/Metrics/MetricView.tsx index 362e4636c6..1253c65d78 100644 --- a/Dashboard/src/Components/Metrics/MetricView.tsx +++ b/Dashboard/src/Components/Metrics/MetricView.tsx @@ -396,6 +396,14 @@ const MetricView: FunctionComponent = ( async (): Promise => { setIsMetricResultsLoading(true); + if ( + !metricViewData.startAndEndDate?.startValue || + !metricViewData.startAndEndDate?.endValue + ) { + setIsMetricResultsLoading(false); + return; + } + const results: Array = []; try { for (const queryConfig of metricViewData.queryConfigs) {