@@ -35,9 +35,9 @@ export class MacroTabComponent implements OnInit, OnDestroy, Tab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.macroOptions = this.macros.map(function (macro: Macro): Select2OptionData {
|
this.macroOptions = this.macros.map(function (macro: Macro, index: number): Select2OptionData {
|
||||||
return {
|
return {
|
||||||
id: macro.id.toString(),
|
id: index.toString(),
|
||||||
text: macro.name
|
text: macro.name
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user