Skip to content

Commit

Permalink
chore: use the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 3, 2023
1 parent ec27363 commit 61d1dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/js/src/forum/states/DiscussionListState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class DiscussionListState<P extends DiscussionListParams = Discus

if (preloadedDiscussions) {
this.initialLoading = false;
this.pageSize = preloadedDiscussions.payload.meta?.perPage || 20;
this.pageSize = preloadedDiscussions.payload.meta?.perPage || DiscussionListState.DEFAULT_PAGE_SIZE;

return Promise.resolve(preloadedDiscussions);
}
Expand Down

0 comments on commit 61d1dc3

Please sign in to comment.