Skip to content

Commit 92581bf

Browse files
[UXP-242] fix loading
1 parent 415edc7 commit 92581bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/shared/form/vocabulary-treeview/vocabulary-treeview.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ export class VocabularyTreeviewService {
434434
})
435435
).subscribe(hierarchy => {
436436
// 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) {
437+
// 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) {
438439
this.loading.next(false);
439440
}
440441
// Notify the change.

0 commit comments

Comments
 (0)