We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15b37f commit 88e2f0cCopy full SHA for 88e2f0c
1 file changed
apps/rxjs.dev/src/app/custom-elements/api/api.service.ts
@@ -80,9 +80,9 @@ export class ApiService implements OnDestroy {
80
.subscribe(
81
sections => this.sectionsSubject.next(sections),
82
(err: HttpErrorResponse) => {
83
- // TODO: handle error
84
this.logger.error(err);
85
- throw err; // rethrow for now.
+ // Fallback to empty sections to avoid breaking the UI on fetch failure.
+ this.sectionsSubject.next([]);
86
}
87
);
88
0 commit comments