From aca22f9429ba22e2595bc3d9a3b8cf84d4c9ccf1 Mon Sep 17 00:00:00 2001 From: Nejc Zdovc Date: Sat, 1 Oct 2016 13:42:39 +0200 Subject: [PATCH] fix: First macro opening (#123) Closes #121 --- src/components/macro/macro.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/macro/macro.component.ts b/src/components/macro/macro.component.ts index ce52b31a..7cbbf6f8 100644 --- a/src/components/macro/macro.component.ts +++ b/src/components/macro/macro.component.ts @@ -110,7 +110,7 @@ export class MacroComponent implements OnDestroy { } private hideActiveEditor() { - if (this.activeEdit) { + if (this.activeEdit !== undefined) { this.macroItems.toArray()[this.activeEdit].cancelEdit(); } }