From c60a49363f977267e0c6ca07717391ac11c5f94c Mon Sep 17 00:00:00 2001 From: Miguel Veloso Date: Tue, 15 Jun 2021 15:48:22 +0100 Subject: [PATCH] Fix catalog search error --- .../WebSPA/Client/src/modules/catalog/catalog.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts b/src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts index cb93e536a..59e85e8c9 100644 --- a/src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts +++ b/src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts @@ -56,6 +56,10 @@ export class CatalogComponent implements OnInit { onFilterApplied(event: any) { event.preventDefault(); + + this.brandSelected = this.brandSelected && this.brandSelected.toString() != "null" ? this.brandSelected : null; + this.typeSelected = this.typeSelected && this.typeSelected.toString() != "null" ? this.typeSelected : null; + this.paginationInfo.actualPage = 0; this.getCatalog(this.paginationInfo.itemsPage, this.paginationInfo.actualPage, this.brandSelected, this.typeSelected); }