From eee8f9c578490ed9cda1dbd01d11e6f75a338b03 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 8 Nov 2023 20:08:58 -0800 Subject: [PATCH] fixes to searchAfter --- frontend/src/app/services/lighthouse.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/services/lighthouse.service.ts b/frontend/src/app/services/lighthouse.service.ts index 4c2898d9..dd8ce169 100644 --- a/frontend/src/app/services/lighthouse.service.ts +++ b/frontend/src/app/services/lighthouse.service.ts @@ -31,7 +31,7 @@ export class LighthouseService { ) {} public searchLighthouseSources(filter: MedicalSourcesFilter): Observable { - 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 = []