Commit 0fdf58e2929e4fbe4560afe87a05801343230ad9

Authored by Marcelo Puebla
1 parent b98fa43e30
Exists in master and in 1 other branch validar_pve

Agregadas llaves.

src/app/components/busqueda-productos/busqueda-productos.component.ts
... ... @@ -51,11 +51,13 @@ export class BusquedaProductosComponent implements OnInit {
51 51 filterItems() {
52 52  
53 53 this.auxProductos = this.productos.filter(x => {
54   - if (this.categoriaActive === 0)
  54 + if (this.categoriaActive === 0){
55 55 return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase())
56   - else
  56 + }
  57 + else{
57 58 return x.DetArt.toLowerCase().includes(this.searchTerm.toLowerCase()) &&
58   - x.categoria_selfservice === this.categoriaActive;
  59 + x.categoria_selfservice === this.categoriaActive;
  60 + }
59 61 });
60 62 }
61 63