From eaf216e31119164baae1de3414b2cb5aea9a45a4 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Wed, 21 Aug 2019 09:57:47 -0300 Subject: [PATCH] Arreglo por si en el get de sinonimos viene un array vacio. --- src/app/components/inicio/inicio.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index 00fd0f2..2739f01 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -154,6 +154,8 @@ export class InicioComponent implements OnInit { this.sinonimos = res; if (res.length > 0) this.showPopover(); + else + this.popoverDirective.hide(); }) } else { this.popoverDirective.hide(); -- 1.9.1