diff --git a/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts b/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts index 241c419..a603ef3 100644 --- a/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts +++ b/src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.ts @@ -56,7 +56,7 @@ export class FiltroCategoriasComponent implements OnInit { this.getProductos.emit() : this.setProductos.emit(); }); - this.mediaPantalla(); + this.mediaPantalla(); } selectCategoria(index: number, idCategoria?: number) { diff --git a/src/app/shared/sinonimo/sinonimo.component.ts b/src/app/shared/sinonimo/sinonimo.component.ts index 0f4667f..cf42e7a 100644 --- a/src/app/shared/sinonimo/sinonimo.component.ts +++ b/src/app/shared/sinonimo/sinonimo.component.ts @@ -75,8 +75,8 @@ export class SinonimoComponent implements OnInit { } scrollTo(index: number) { - const element = document.getElementById(index.toString()); - element.scrollIntoView({ behavior: 'smooth', block: 'center' }); + const el = document.getElementById(index.toString()); + el.scrollIntoView({ behavior: 'smooth', block: 'center' }); } }