diff --git a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx index 672ccd846..48f156098 100644 --- a/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx +++ b/frontend/app/components/Dashboard/components/DashboardWidgetGrid/AddMetric.tsx @@ -77,7 +77,7 @@ function AddMetric({ metrics, history, siteId, title, description }: IProps) { {'Selected '} {selectedWidgetIds.length} {' out of '} - {metrics.length} + {metrics ? metrics.length : 0}