diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetrics.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetrics.tsx index 912a68ddee..b69469d3e2 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetrics.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetrics.tsx @@ -56,7 +56,9 @@ export const FeatureMetrics = () => { } }, [JSON.stringify(Array.from(applications))]); - const allSelected = selectedApplications.length === applications.size; + const allSelected = [...applications].every((element) => + selectedApplications.includes(element), + ); const { featureMetrics } = useFeatureMetricsRaw(featureId, hoursBack); diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx index dae629f345..4276222d76 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsChips/FeatureMetricsChips.tsx @@ -50,7 +50,9 @@ export const FeatureMetricsChips = ({ const onClick = (value: string) => () => { toggleValue(value); }; - const allSelected = values.size === selectedValues.length; + const allSelected = [...values].every((element) => + selectedValues.includes(element), + ); const sortedValues = useMemo(() => { return Array.from(values).sort((valueA, valueB) => {