Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit f2f3d73

Browse files
committed
(partly) fix types
1 parent 75a686d commit f2f3d73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/osf-components/addon/components/search-page/component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)