From f1e5c858f15ad525b7e34612f038c72e4f65b65a Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 31 Oct 2024 17:53:16 +0100 Subject: [PATCH] fix(ui): optional subfilter check --- .../Dashboard/Widgets/CustomMetricsWidgets/SessionsBy.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/SessionsBy.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/SessionsBy.tsx index 6173fd007..5bf913ea1 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/SessionsBy.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/SessionsBy.tsx @@ -27,7 +27,7 @@ function SessionsBy(props: Props) { ...filtersMap[metric.metricOf], value: [data.name], type: filtersMap[metric.metricOf].key, - filters: filtersMap[metric.metricOf].filters.map((f: any) => { + filters: filtersMap[metric.metricOf].filters?.map((f: any) => { const { key, operatorOptions, category, icon, label, options, ...cleaned } = f; return { ...cleaned, type: f.key, value: [] }; })