Minor fix for scenarios where page is undefined. Fixes a few specs.

This commit is contained in:
Tim Donohue
2024-05-31 14:11:57 -05:00
parent e3595e5f34
commit bb341a3ea7

View File

@@ -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));
}),
)),