File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:go_router/go_router.dart';
4
4
import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dart' ;
5
5
import 'package:ht_dashboard/content_management/bloc/create_category/create_category_bloc.dart' ;
6
6
import 'package:ht_dashboard/l10n/l10n.dart' ;
7
+ import 'package:ht_dashboard/shared/constants/pagination_constants.dart' ;
7
8
import 'package:ht_dashboard/shared/shared.dart' ;
8
9
import 'package:ht_data_repository/ht_data_repository.dart' ;
9
10
import 'package:ht_shared/ht_shared.dart' ;
@@ -81,7 +82,8 @@ class _CreateCategoryViewState extends State<_CreateCategoryView> {
81
82
SnackBar (content: Text (l10n.categoryCreatedSuccessfully)),
82
83
);
83
84
context.read <ContentManagementBloc >().add (
84
- CategoryAdded (state.createdCategory! ),
85
+ // Refresh the list to show the new category
86
+ const LoadCategoriesRequested (limit: kDefaultRowsPerPage),
85
87
);
86
88
context.pop ();
87
89
}
You can’t perform that action at this time.
0 commit comments