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.
This commit is contained in:
Shekar Siri 2025-03-25 18:08:29 +01:00
parent 0500f30d14
commit 9f681aca45

View file

@ -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' };