Merge pull request #2513 from Maxime-J/metrics-search

Fix metrics search when a value is null.
This commit is contained in:
Mike Cao 2024-02-15 19:13:18 -08:00 committed by GitHub
commit 1e6e468644
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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());
});
}