mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Minor fix for scenarios where page
is undefined. Fixes a few specs.
This commit is contained in:
@@ -293,7 +293,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy {
|
||||
getFirstSucceededRemoteDataPayload(),
|
||||
tap((facetValues: FacetValues) => {
|
||||
this.isLastPage$.next(hasNoValue(facetValues?.next));
|
||||
const hasLimitFacets = facetValues?.page.length < facetValues?.facetLimit;
|
||||
const hasLimitFacets = facetValues?.page?.length < facetValues?.facetLimit;
|
||||
this.isAvailableForShowSearchText.next(hasLimitFacets && hasNoValue(facetValues?.next));
|
||||
}),
|
||||
)),
|
||||
|
Reference in New Issue
Block a user