You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(feed): correctly identify custom filters on apply
Refactors the `_onHeadlinesFeedFiltersApplied` handler in `HeadlinesFeedBloc` to robustly determine the active filter ID.
Previously, applying a modified saved filter would incorrectly retain the original filter's ID, causing the wrong UI chip to be selected.
This change introduces logic to compare the contents of the incoming `HeadlineFilter` against all existing `savedFilters`. If an exact match is found, its ID is used. If no match is found (indicating a modification or a new unsaved filter), the `activeFilterId` is explicitly set to 'custom'. This resolves the bug and ensures the UI accurately reflects the filter state.
0 commit comments