Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
Fixing accidental reset of pipe (#27)
Browse files Browse the repository at this point in the history
jsExamplePipe was being reset, but we wanted to reset jsExample. Fixing the error and made jsExamplePipe readonly.
  • Loading branch information
mtlynch committed Mar 7, 2019
1 parent 6d35071 commit c2c55e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/public/demo/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export class DemoComponent implements OnInit {
];

constructor(
private parserService: ParserService,
private curlCmdPipe: CurlCmdPipe,
private jsExamplePipe: JsExamplePipe) { }
private readonly parserService: ParserService,
private readonly curlCmdPipe: CurlCmdPipe,
private readonly jsExamplePipe: JsExamplePipe) { }

ngOnInit() { }

Expand Down Expand Up @@ -68,7 +68,7 @@ export class DemoComponent implements OnInit {
this.ingredientParsed = null;
this.error = null;
this.curlExample = null;
this.jsExamplePipe = null;
this.jsExample = null;
}

parseExample(exampleIngredient: string) {
Expand Down

0 comments on commit c2c55e0

Please sign in to comment.