Skip to content

Commit 88e2f0c

Browse files
committed
feat(rxjs.dev): handle api list fetch failure with fallback
1 parent c15b37f commit 88e2f0c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/rxjs.dev/src/app/custom-elements/api/api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ export class ApiService implements OnDestroy {
8080
.subscribe(
8181
sections => this.sectionsSubject.next(sections),
8282
(err: HttpErrorResponse) => {
83-
// TODO: handle error
8483
this.logger.error(err);
85-
throw err; // rethrow for now.
84+
// Fallback to empty sections to avoid breaking the UI on fetch failure.
85+
this.sectionsSubject.next([]);
8686
}
8787
);
8888
}

0 commit comments

Comments
 (0)