diff --git a/public/docs/_examples/toh-6/ts/app/hero-search.component.ts b/public/docs/_examples/toh-6/ts/app/hero-search.component.ts index a69db4491d..9ef06ca47c 100644 --- a/public/docs/_examples/toh-6/ts/app/hero-search.component.ts +++ b/public/docs/_examples/toh-6/ts/app/hero-search.component.ts @@ -15,7 +15,7 @@ import { Hero } from './hero'; }) export class HeroSearchComponent implements OnInit { // #docregion search - heroes: Observable; + heroes: Observable; // #enddocregion search // #docregion searchSubject searchSubject = new Subject(); @@ -45,7 +45,7 @@ export class HeroSearchComponent implements OnInit { .catch(error => { // Todo: real error handling console.log(error); - return Observable.throw(error); + return Observable.of([]); }); } // #enddocregion search