From 635b84fbd7da34c3101edef8abccbb9d237089bf Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Thu, 6 Sep 2018 14:45:17 +0200 Subject: [PATCH] Don't pass step variable, it is not necessary --- .../converter-selector/converter-selector.component.html | 2 +- src/app/converter-selector/converter-selector.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/converter-selector/converter-selector.component.html b/src/app/converter-selector/converter-selector.component.html index b15dd1b..5c3364c 100644 --- a/src/app/converter-selector/converter-selector.component.html +++ b/src/app/converter-selector/converter-selector.component.html @@ -1,6 +1,6 @@
- diff --git a/src/app/converter-selector/converter-selector.component.ts b/src/app/converter-selector/converter-selector.component.ts index c3b6230..5aeba29 100644 --- a/src/app/converter-selector/converter-selector.component.ts +++ b/src/app/converter-selector/converter-selector.component.ts @@ -19,9 +19,9 @@ export class ConverterSelectorComponent implements OnInit { constructor(private converterRegistryService: ConverterRegistryService) { } - convert(step: Step, $event: any): void { - step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id); - this.textInput.update(step); + convert($event: any): void { + this.step.selectedConverter = this.converterRegistryService.getConverter($event.target.selectedOptions[0].id); + this.textInput.update(this.step); } ngOnInit() {