Skip to content

Commit 0c49c46

Browse files
[Dashboards listing] fix listing limit (#4021)
Initial page size was passed to the search function instead of the listing limit causing the max amount received to be significantly less than the previously implementation. Saved objects per page is `20` by default and the listing limit per page is `1000` by default. Issue: #4017 Signed-off-by: Kawika Avilla <kavilla414@gmail.com> (cherry picked from commit 8121c9d) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 673719e commit 0c49c46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/dashboard/public/application/legacy_app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function initDashboardApp(app, deps) {
150150
type: $scope.dashboardListTypes,
151151
search: search ? `${search}*` : undefined,
152152
fields: ['title', 'type', 'description', 'updated_at'],
153-
perPage: $scope.initialPageSize,
153+
perPage: $scope.listingLimit,
154154
page: 1,
155155
searchFields: ['title^3', 'type', 'description'],
156156
defaultSearchOperator: 'AND',

0 commit comments

Comments
 (0)