@@ -11,7 +11,6 @@ import Store from '@ember-data/store';
11
11
import { action } from '@ember/object' ;
12
12
import Media from 'ember-responsive' ;
13
13
14
- import { ShareMoreThanTenThousand } from 'ember-osf-web/models/index-card-search' ;
15
14
import InstitutionModel from 'ember-osf-web/models/institution' ;
16
15
import SearchResultModel from 'ember-osf-web/models/search-result' ;
17
16
import ProviderModel from 'ember-osf-web/models/provider' ;
@@ -83,7 +82,7 @@ export default class SearchPage extends Component<SearchArgs> {
83
82
@tracked relatedProperties ?: RelatedPropertyPathModel [ ] = [ ] ;
84
83
@tracked booleanFilters ?: RelatedPropertyPathModel [ ] = [ ] ;
85
84
@tracked page ?: string = '' ;
86
- @tracked totalResultCount ?: number | { '@id' : string } ;
85
+ @tracked totalResultCount ?: number | string ;
87
86
@tracked firstPageCursor ?: string | null ;
88
87
@tracked prevPageCursor ?: string | null ;
89
88
@tracked nextPageCursor ?: string | null ;
@@ -263,8 +262,7 @@ export default class SearchPage extends Component<SearchArgs> {
263
262
this . nextPageCursor = searchResult . nextPageCursor ;
264
263
this . prevPageCursor = searchResult . prevPageCursor ;
265
264
this . searchResults = searchResult . searchResultPage . toArray ( ) ;
266
- this . totalResultCount = searchResult . totalResultCount ?. [ '@id' ] === ShareMoreThanTenThousand ? '10,000+' :
267
- searchResult . totalResultCount ;
265
+ this . totalResultCount = searchResult . displayCount ;
268
266
} catch ( e ) {
269
267
this . toast . error ( e ) ;
270
268
}
0 commit comments