Skip to content

Commit e9a019d

Browse files
committed
feat(account): filter active topics in available topics bloc
- Add a filter to fetch only active topics from the repository - Maintain existing pagination and sorting functionality
1 parent 354f20a commit e9a019d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/account/bloc/available_topics_bloc.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ class AvailableTopicsBloc
2929
emit(state.copyWith(status: AvailableTopicsStatus.loading));
3030
try {
3131
// TODO(fulleni): Add pagination if necessary for very large datasets.
32+
// Filter to fetch only active topics.
3233
final response = await _topicsRepository.readAll(
34+
filter: {'status': ContentStatus.active.name},
3335
sort: [const SortOption('name', SortOrder.asc)],
3436
);
3537
emit(

0 commit comments

Comments
 (0)