diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index 163c97e95..7181ae1c8 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -202,9 +202,10 @@ export class SearchPage implements OnInit { this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments) } - - if(this.findOnly.length >= 1) { - this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType)) + if(this.findOnly){ + if(this.findOnly.length >= 1) { + this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType)) + } } }