We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 415edc7 commit 92581bfCopy full SHA for 92581bf
1 file changed
src/app/shared/form/vocabulary-treeview/vocabulary-treeview.service.ts
@@ -434,7 +434,8 @@ export class VocabularyTreeviewService {
434
})
435
).subscribe(hierarchy => {
436
// Loading stops if we reach the end of the list or if we are done with the first loading and don't need to load all.
437
- if ((tempList.pageInfo.currentPage === tempList.pageInfo.totalPages && loadAll) || !loadAll) {
+ // Major or equal because rest seems bugged and return total pages 0 if there is only 1 element
438
+ if ((tempList.pageInfo.currentPage >= tempList.pageInfo.totalPages && loadAll) || !loadAll) {
439
this.loading.next(false);
440
}
441
// Notify the change.
0 commit comments