Skip to content

Commit

Permalink
fix pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesWt committed Oct 8, 2024
1 parent 94c1016 commit b732707
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export class LearningPathsTableComponent {
readonly page = signal<number>(1);
private readonly sortingOrder = signal<SortingOrder>(SortingOrder.ASCENDING);
private readonly sortedColumn = signal<TableColumn>(TableColumn.ID);
readonly pageSize = signal<number>(50).asReadonly();
readonly pageSize = signal<number>(100).asReadonly();
readonly collectionSize = computed(() => {
if (this.learningPaths().length <= this.pageSize()) {
if (this.learningPaths().length < this.pageSize()) {
return this.learningPaths().length;
} else {
return (this.searchResults()?.numberOfPages ?? 1) * this.pageSize();
Expand Down

0 comments on commit b732707

Please sign in to comment.