fixes to searchAfter

This commit is contained in:
Jason Kulatunga 2023-11-08 20:08:58 -08:00
parent 37acb230cf
commit eee8f9c578
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class LighthouseService {
) {}
public searchLighthouseSources(filter: MedicalSourcesFilter): Observable<LighthouseSourceSearch> {
if(filter.searchAfter){
if((typeof filter.searchAfter === 'string' || filter.searchAfter instanceof String) && (filter.searchAfter as string).length > 0){
filter.searchAfter = (filter.searchAfter as string).split(',')
} else {
filter.searchAfter = []