fix bug in search

This commit is contained in:
tiago.kayaya
2021-12-13 10:24:54 +01:00
parent 22d079acbc
commit 71d7ff67b2
+4 -3
View File
@@ -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))
}
}
}