mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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(),
|
getFirstSucceededRemoteDataPayload(),
|
||||||
tap((facetValues: FacetValues) => {
|
tap((facetValues: FacetValues) => {
|
||||||
this.isLastPage$.next(hasNoValue(facetValues?.next));
|
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));
|
this.isAvailableForShowSearchText.next(hasLimitFacets && hasNoValue(facetValues?.next));
|
||||||
}),
|
}),
|
||||||
)),
|
)),
|
||||||
|
Reference in New Issue
Block a user