This repository was archived by the owner on Apr 14, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
lib/osf-components/addon/components/search-page Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export default class SearchPage extends Component<SearchArgs> {
8383 @tracked relatedProperties ?: RelatedPropertyPathModel [ ] = [ ] ;
8484 @tracked booleanFilters ?: RelatedPropertyPathModel [ ] = [ ] ;
8585 @tracked page ?: string = '' ;
86- @tracked totalResultCount ?: string | number ;
86+ @tracked totalResultCount ?: number | { '@id' : string } ;
8787 @tracked firstPageCursor ?: string | null ;
8888 @tracked prevPageCursor ?: string | null ;
8989 @tracked nextPageCursor ?: string | null ;
@@ -263,7 +263,7 @@ export default class SearchPage extends Component<SearchArgs> {
263263 this . nextPageCursor = searchResult . nextPageCursor ;
264264 this . prevPageCursor = searchResult . prevPageCursor ;
265265 this . searchResults = searchResult . searchResultPage . toArray ( ) ;
266- this . totalResultCount = searchResult . totalResultCount [ '@id' ] === ShareMoreThanTenThousand ? '10,000+' :
266+ this . totalResultCount = searchResult . totalResultCount ?. [ '@id' ] === ShareMoreThanTenThousand ? '10,000+' :
267267 searchResult . totalResultCount ;
268268 } catch ( e ) {
269269 this . toast . error ( e ) ;
You can’t perform that action at this time.
0 commit comments