Skip to content

Commit 0b41d85

Browse files
committed
fix(create-headline): filter sources and topics by active status
1 parent 8fc359e commit 0b41d85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/content_management/bloc/create_headline/create_headline_bloc.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ class CreateHeadlineBloc
5454
final [sourcesResponse, topicsResponse] = await Future.wait([
5555
_sourcesRepository.readAll(
5656
sort: [const SortOption('updatedAt', SortOrder.desc)],
57+
filter: {'status': ContentStatus.active.name},
5758
),
5859
_topicsRepository.readAll(
5960
sort: [const SortOption('updatedAt', SortOrder.desc)],
61+
filter: {'status': ContentStatus.active.name},
6062
),
6163
]);
6264

0 commit comments

Comments
 (0)