From 88e2f0cd0f7fec1262e2c3368cf11fa9c2077d5b Mon Sep 17 00:00:00 2001 From: cm Date: Sat, 24 Jan 2026 22:00:41 +0100 Subject: [PATCH] feat(rxjs.dev): handle api list fetch failure with fallback --- apps/rxjs.dev/src/app/custom-elements/api/api.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rxjs.dev/src/app/custom-elements/api/api.service.ts b/apps/rxjs.dev/src/app/custom-elements/api/api.service.ts index a5349f4166..3fa6b5f2db 100644 --- a/apps/rxjs.dev/src/app/custom-elements/api/api.service.ts +++ b/apps/rxjs.dev/src/app/custom-elements/api/api.service.ts @@ -80,9 +80,9 @@ export class ApiService implements OnDestroy { .subscribe( sections => this.sectionsSubject.next(sections), (err: HttpErrorResponse) => { - // TODO: handle error this.logger.error(err); - throw err; // rethrow for now. + // Fallback to empty sections to avoid breaking the UI on fetch failure. + this.sectionsSubject.next([]); } ); }