Skip to content

Commit 05c3e36

Browse files
committed
refactor(headlines-feed): improve error message handling in SourcesFilterBloc
- Replace `error` property with `clearErrorMessage` for simplicity - Remove redundant `clearFollowedSourcesError` property - Update state copy to reflect new error handling approach
1 parent 69ff9fc commit 05c3e36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/headlines-feed/bloc/sources_filter_bloc.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ class SourcesFilterBloc extends Bloc<SourcesFilterEvent, SourcesFilterState> {
229229
state.copyWith(
230230
followedSourcesStatus: SourceFilterDataLoadingStatus.success,
231231
followedSources: const [],
232-
error: const OperationFailedException('No followed sources found.'),
233-
clearFollowedSourcesError: true,
232+
clearErrorMessage: true,
234233
),
235234
);
236235
return;

0 commit comments

Comments
 (0)