From 9f681aca45d0c829719be54a40c71c06ed248fd5 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 25 Mar 2025 18:08:29 +0100 Subject: [PATCH] fix(dashboard): update filter condition in MetricsList Change the filter type comparison from checking against 'all' to checking against an empty string. This ensures proper filtering behavior when filtering metrics in the dashboard component. --- .../components/Dashboard/components/MetricsList/MetricsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx index 37a28dbac..f807f1a70 100644 --- a/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx +++ b/frontend/app/components/Dashboard/components/MetricsList/MetricsList.tsx @@ -68,7 +68,7 @@ function MetricsList({ }, [metricStore]); - const isFiltered = metricStore.filter.query !== '' || metricStore.filter.type !== 'all'; + const isFiltered = metricStore.filter.query !== '' || metricStore.filter.type !== ''; const searchImageDimensions = { width: 60, height: 'auto' }; const defaultImageDimensions = { width: 600, height: 'auto' };