fix: NCWF-4 Token Issues (#8)
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
@@ -85,7 +85,14 @@ export class GamesComponent implements OnInit {
|
||||
}
|
||||
|
||||
const requests = ids.map((id) =>
|
||||
this.gameApi.getGame(id).pipe(catchError(() => of(null)))
|
||||
this.gameApi.getGame(id).pipe(
|
||||
catchError((err: unknown) => {
|
||||
if (typeof err === 'object' && err !== null && (err as { status: number }).status === 404) {
|
||||
this.gameHistory.removeGame(id);
|
||||
}
|
||||
return of(null);
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
forkJoin(requests)
|
||||
|
||||
Reference in New Issue
Block a user