From b732707850e22ccf4143549bcb1499f49a08ff4b Mon Sep 17 00:00:00 2001 From: Johannes Wiest Date: Tue, 8 Oct 2024 16:28:01 +0200 Subject: [PATCH] fix pagination --- .../learning-paths-table/learning-paths-table.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/app/course/learning-paths/components/learning-paths-table/learning-paths-table.component.ts b/src/main/webapp/app/course/learning-paths/components/learning-paths-table/learning-paths-table.component.ts index 142294ff4d31..15af2358f019 100644 --- a/src/main/webapp/app/course/learning-paths/components/learning-paths-table/learning-paths-table.component.ts +++ b/src/main/webapp/app/course/learning-paths/components/learning-paths-table/learning-paths-table.component.ts @@ -41,9 +41,9 @@ export class LearningPathsTableComponent { readonly page = signal(1); private readonly sortingOrder = signal(SortingOrder.ASCENDING); private readonly sortedColumn = signal(TableColumn.ID); - readonly pageSize = signal(50).asReadonly(); + readonly pageSize = signal(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();