Browse Source

Fix catalog search error

pull/1705/head
Miguel Veloso 3 years ago
parent
commit
c60a49363f
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts

+ 4
- 0
src/Web/WebSPA/Client/src/modules/catalog/catalog.component.ts View File

@ -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);
}


Loading…
Cancel
Save