From f585565b022e3762c6835a2a7ea9291f3813b763 Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 19 Aug 2022 13:30:04 +0200 Subject: [PATCH] fix(ui): fix custom metric modal --- .../Dashboard/components/DashboardWidgetGrid/AddMetric.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}