From a1abfab13a4020554ed684b84cc2097714a36e3a Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Sun, 25 Jun 2017 01:40:48 -0400 Subject: [PATCH] cleanup --- src/app/search/search.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/search/search.component.ts b/src/app/search/search.component.ts index 18e4907..dd107f5 100644 --- a/src/app/search/search.component.ts +++ b/src/app/search/search.component.ts @@ -37,10 +37,8 @@ export class SearchComponent implements OnInit { this.searchTerms .debounceTime(300) .distinctUntilChanged() - .switchMap(term => this.createAPIObservable(term)) - .subscribe((results)=>{ - this.results = results; - }); + .switchMap(name => this.createAPIObservable(name)) + .subscribe(results=> this.results = results ); } }