Skip to content

Commit

Permalink
fix: advanced search number of results bug (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
derschnee68 committed Jan 26, 2024
1 parent 1bb85a7 commit 2ad2be0
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -319,7 +319,9 @@ export class ListViewComponent implements OnChanges, OnInit, OnDestroy {
: this._store.select(OntologyClassSelectors.classItems).pipe(
take(1),
map(classItems => {
this.numberOfAllResults = classItems[this.search.classId].classItemsCount;
this.numberOfAllResults = classItems[this.search.classId]
? classItems[this.search.classId].classItemsCount
: 0;
this.currentRangeEnd = this.numberOfAllResults > 25 ? 25 : this.numberOfAllResults;
if (this.numberOfAllResults === 0) {
this._notification.openSnackBar('No resources to display.');
Expand Down

0 comments on commit 2ad2be0

Please sign in to comment.