fix: First macro opening (#123)

Closes #121
This commit is contained in:
Nejc Zdovc
2016-10-01 13:42:39 +02:00
committed by József Farkas
parent f93477487c
commit aca22f9429

View File

@@ -110,7 +110,7 @@ export class MacroComponent implements OnDestroy {
}
private hideActiveEditor() {
if (this.activeEdit) {
if (this.activeEdit !== undefined) {
this.macroItems.toArray()[this.activeEdit].cancelEdit();
}
}