Skip to content

Commit 2bb5cce

Browse files
committed
feat(content-management): update LoadSourcesRequested to include default row limit
1 parent 6b4961d commit 2bb5cce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/content_management/view/create_source_page.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dar
55
import 'package:ht_dashboard/content_management/bloc/create_source/create_source_bloc.dart';
66
import 'package:ht_dashboard/content_management/bloc/edit_source/edit_source_bloc.dart';
77
import 'package:ht_dashboard/l10n/l10n.dart';
8+
import 'package:ht_dashboard/shared/constants/pagination_constants.dart';
89
import 'package:ht_dashboard/shared/shared.dart';
910
import 'package:ht_data_repository/ht_data_repository.dart';
1011
import 'package:ht_shared/ht_shared.dart';
@@ -82,7 +83,9 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
8283
SnackBar(content: Text(l10n.sourceCreatedSuccessfully)),
8384
);
8485
context.read<ContentManagementBloc>().add(
85-
const LoadSourcesRequested(),
86+
const LoadSourcesRequested(
87+
limit: kDefaultRowsPerPage,
88+
),
8689
);
8790
context.pop();
8891
}

0 commit comments

Comments
 (0)