From e44901698d37deb5c74e8e16f465b9cd53ab9f4d Mon Sep 17 00:00:00 2001 From: Jaroslaw Michalski Date: Thu, 2 Nov 2023 11:25:11 +0000 Subject: [PATCH] check if category is null to prevent app breaking --- src/pages/MetricDocs/Sections/MetricName.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/MetricDocs/Sections/MetricName.js b/src/pages/MetricDocs/Sections/MetricName.js index ddb06bb3..b47013d0 100644 --- a/src/pages/MetricDocs/Sections/MetricName.js +++ b/src/pages/MetricDocs/Sections/MetricName.js @@ -81,7 +81,7 @@ const Metrics: ComponentType<*> = ({ metrics, setUri }) => { ) && ( categories - ? item.category.toLowerCase() === categories.toLowerCase() + ? (item.category != null ? item.category.toLowerCase() === categories.toLowerCase() : false) : true ) && (