Skip to content

Commit 354f20a

Browse files
committed
feat(account): filter active sources in AvailableSourcesBloc
- Add a filter to fetch only active sources from the repository - Maintain existing sorting by name in ascending order - Preserve pagination comment for future consideration
1 parent fc159c0 commit 354f20a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/account/bloc/available_sources_bloc.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class AvailableSourcesBloc
3333
emit(state.copyWith(status: AvailableSourcesStatus.loading));
3434
try {
3535
// TODO(fulleni): Add pagination if necessary for very large datasets.
36+
// Filter to fetch only active sources.
3637
final response = await _sourcesRepository.readAll(
38+
filter: {'status': ContentStatus.active.name},
3739
sort: [const SortOption('name', SortOrder.asc)],
3840
);
3941
emit(

0 commit comments

Comments
 (0)