From 37125af47af3e497ffbf429ef4f17e9f78cc78e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Farkas=20J=C3=B3zsef?= Date: Sat, 3 Dec 2016 20:06:17 +0100 Subject: [PATCH] Macro-tab selection fix Closes #205 --- src/components/popover/tab/macro/macro-tab.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/popover/tab/macro/macro-tab.component.ts b/src/components/popover/tab/macro/macro-tab.component.ts index f1930531..5dae5181 100644 --- a/src/components/popover/tab/macro/macro-tab.component.ts +++ b/src/components/popover/tab/macro/macro-tab.component.ts @@ -35,9 +35,9 @@ export class MacroTabComponent implements OnInit, OnDestroy, Tab { } ngOnInit() { - this.macroOptions = this.macros.map(function (macro: Macro): Select2OptionData { + this.macroOptions = this.macros.map(function (macro: Macro, index: number): Select2OptionData { return { - id: macro.id.toString(), + id: index.toString(), text: macro.name }; });