Skip to content

Commit 7b55c37

Browse files
committed
fix(content_management): trigger headlines load when breaking news toggle changes
- Add condition to check for changes in isBreaking state - Ensure headlines are reloaded when the breaking news toggle is switched
1 parent 07b4527 commit 7b55c37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/content_management/view/content_management_page.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class _ContentManagementPageState extends State<ContentManagementPage>
7878
!const DeepCollectionEquality().equals(
7979
previous.selectedCountryIds,
8080
current.selectedCountryIds,
81-
),
81+
) ||
82+
previous.isBreaking != current.isBreaking,
8283
listener: (context, state) {
8384
context.read<ContentManagementBloc>().add(
8485
LoadHeadlinesRequested(

0 commit comments

Comments
 (0)