From 536bb85311eafbbcd34ec905eb19b05f2f6dc967 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Thu, 22 Aug 2019 11:23:33 -0300 Subject: [PATCH] Agregada condicion en else. --- src/app/components/inicio/inicio.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index 0897ca7..adfdf56 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -146,11 +146,11 @@ export class InicioComponent implements OnInit { this.sinonimos = res; if (res.length > 0) - this.showPopover(); + this.popoverDirective.show(); else this.popoverDirective.hide(); }) - } else { + } else if (this.popoverDirective) { this.popoverDirective.hide(); } } -- 1.9.1