diff --git a/apps/rxjs-catch-error/src/app/app.component.ts b/apps/rxjs-catch-error/src/app/app.component.ts index c7dfb0f..6974c93 100644 --- a/apps/rxjs-catch-error/src/app/app.component.ts +++ b/apps/rxjs-catch-error/src/app/app.component.ts @@ -38,11 +38,11 @@ export class AppComponent { ngOnInit() { this.submit$$ .pipe( - takeUntilDestroyed(this.destroyRef), map(() => this.input), concatMap((value) => this.http.get(`https://jsonplaceholder.typicode.com/${value}/1`) - ) + ), + takeUntilDestroyed(this.destroyRef) ) .subscribe({ next: (value) => { diff --git a/docs/src/content/docs/challenges/rxjs/38-rxjs-catch-error.md b/docs/src/content/docs/challenges/rxjs/38-rxjs-catch-error.md index cf9edb9..8fd668f 100644 --- a/docs/src/content/docs/challenges/rxjs/38-rxjs-catch-error.md +++ b/docs/src/content/docs/challenges/rxjs/38-rxjs-catch-error.md @@ -1,12 +1,22 @@ --- title: 🟢 catchError -description: Challenge 38 is about learning obervable completion. +description: Challenge 38 is about learning obervable +completion. +Author: Devesh Chaudhari +command: rxjs-catch-error +challengeNumber: 38 sidebar: order: 14 badge: New --- -