Commit 536bb85311eafbbcd34ec905eb19b05f2f6dc967
1 parent
2be4954708
Exists in
master
Agregada condicion en else.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/components/inicio/inicio.component.ts
... | ... | @@ -146,11 +146,11 @@ export class InicioComponent implements OnInit { |
146 | 146 | |
147 | 147 | this.sinonimos = res; |
148 | 148 | if (res.length > 0) |
149 | - this.showPopover(); | |
149 | + this.popoverDirective.show(); | |
150 | 150 | else |
151 | 151 | this.popoverDirective.hide(); |
152 | 152 | }) |
153 | - } else { | |
153 | + } else if (this.popoverDirective) { | |
154 | 154 | this.popoverDirective.hide(); |
155 | 155 | } |
156 | 156 | } |