Skip to content

Commit 0c055e7

Browse files
committed
feat(headlines-feed): add filter for active content in headlines filter bloc
- Add filter for active topics and sources in HeadlinesFilterBloc - This ensures that only active content is fetched when loading filters
1 parent 26c3e00 commit 0c055e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/headlines-feed/bloc/headlines_filter_bloc.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ class HeadlinesFilterBloc
6969

7070
try {
7171
final allTopicsResponse = await _topicsRepository.readAll(
72+
filter: {'status': ContentStatus.active.name},
7273
sort: [const SortOption('name', SortOrder.asc)],
7374
);
7475
final allSourcesResponse = await _sourcesRepository.readAll(
76+
filter: {'status': ContentStatus.active.name},
7577
sort: [const SortOption('name', SortOrder.asc)],
7678
);
7779
final allCountriesResponse = await _countriesRepository.readAll(

0 commit comments

Comments
 (0)