From d1cbbf37c01fb5841fd396ffd689fd092eb5c17c Mon Sep 17 00:00:00 2001 From: Maxime-J Date: Thu, 15 Feb 2024 14:25:33 +0000 Subject: [PATCH] Fix metrics search when a value is null. --- src/components/metrics/MetricsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/metrics/MetricsTable.tsx b/src/components/metrics/MetricsTable.tsx index 6713c629..63e3a7cd 100644 --- a/src/components/metrics/MetricsTable.tsx +++ b/src/components/metrics/MetricsTable.tsx @@ -90,7 +90,7 @@ export function MetricsTable({ items = items.filter(({ x, ...data }) => { const value = formatValue(x, type, data); - return value.toLowerCase().includes(search.toLowerCase()); + return value?.toLowerCase().includes(search.toLowerCase()); }); }