Skip to content

Commit bb341a3

Browse files
committed
Minor fix for scenarios where page is undefined. Fixes a few specs.
1 parent e3595e5 commit bb341a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy {
293293
getFirstSucceededRemoteDataPayload(),
294294
tap((facetValues: FacetValues) => {
295295
this.isLastPage$.next(hasNoValue(facetValues?.next));
296-
const hasLimitFacets = facetValues?.page.length < facetValues?.facetLimit;
296+
const hasLimitFacets = facetValues?.page?.length < facetValues?.facetLimit;
297297
this.isAvailableForShowSearchText.next(hasLimitFacets && hasNoValue(facetValues?.next));
298298
}),
299299
)),

0 commit comments

Comments
 (0)