From 10c63575e7f7cd681b084a097b2fc858998cd156 Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Mon, 13 Dec 2021 11:13:21 +0100 Subject: [PATCH] fix search --- src/app/pages/search/search.page.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index 163c97e95..f297717b6 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -53,7 +53,6 @@ export class SearchPage implements OnInit { type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda"; select: boolean = false; - findOnly = [] showSearchInput = false @@ -70,7 +69,6 @@ export class SearchPage implements OnInit { this.type = this.navParams.get('type'); this.select = this.navParams.get('select'); - this.findOnly = this.navParams.get('findOnly') this.showSearchInput = this.navParams.get('showSearchInput'); @@ -201,12 +199,6 @@ export class SearchPage implements OnInit { } else { this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments) } - - - if(this.findOnly.length >= 1) { - this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType)) - } - } sortArrayISODate(myArray: any) { @@ -536,10 +528,10 @@ export class SearchPage implements OnInit { } - async filterDocList(categoryName:string) { + async filterDocList(categoryName:string){ // show all category - if(this. showCategory == categoryName ) { + if(this. showCategory == categoryName ){ this.showSearchDocuments = this.searchDocuments;