Commit c273562d3bde09ad81b78f74a488d9b9971579bc
Exists in
develop
Merge branch 'develop' into 'develop'
Develop See merge request !163
Showing
1 changed file
Show diff stats
src/app/modules/seleccion-articulos/seleccion-articulos.component.ts
... | ... | @@ -176,7 +176,8 @@ export class SeleccionArticulosComponent implements OnInit, AfterViewInit, OnDes |
176 | 176 | .subscribe((res: any) => { |
177 | 177 | this.modalRef = null; |
178 | 178 | if (!res) return; |
179 | - articulo.productos = res.articulos; | |
179 | + articulo.productos = articulo.productos.filter(a => a.idSinonimo === 0); | |
180 | + Array.prototype.push.apply(articulo.productos, res.articulos); | |
180 | 181 | this.articuloService.setArticulo(articulo); |
181 | 182 | }); |
182 | 183 | this.mediaPantalla(); |