Skip to content

Commit 2d7f111

Browse files
committed
feat(content-management): update LoadSourcesRequested to include default row limit
1 parent 4e90352 commit 2d7f111

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/content_management/view/edit_source_page.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:go_router/go_router.dart';
44
import 'package:ht_dashboard/content_management/bloc/content_management_bloc.dart';
55
import 'package:ht_dashboard/content_management/bloc/edit_source/edit_source_bloc.dart';
66
import 'package:ht_dashboard/l10n/l10n.dart';
7+
import 'package:ht_dashboard/shared/constants/pagination_constants.dart';
78
import 'package:ht_dashboard/shared/shared.dart';
89
import 'package:ht_data_repository/ht_data_repository.dart';
910
import 'package:ht_shared/ht_shared.dart';
@@ -111,7 +112,9 @@ class _EditSourceViewState extends State<_EditSourceView> {
111112
SnackBar(content: Text(l10n.sourceUpdatedSuccessfully)),
112113
);
113114
context.read<ContentManagementBloc>().add(
114-
const LoadSourcesRequested(),
115+
const LoadSourcesRequested(
116+
limit: kDefaultRowsPerPage,
117+
),
115118
);
116119
context.pop();
117120
}

0 commit comments

Comments
 (0)