From bf918a72b39f5b5bed4b01eb30b7b72a53c590c2 Mon Sep 17 00:00:00 2001 From: akhil srivatsa Date: Mon, 11 Sep 2023 14:17:04 -0400 Subject: [PATCH] Media results null check --- frontend/src/data/media-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/data/media-service.ts b/frontend/src/data/media-service.ts index 75e26b115b3..17df94adf67 100644 --- a/frontend/src/data/media-service.ts +++ b/frontend/src/data/media-service.ts @@ -99,7 +99,7 @@ class MediaService { )) as AxiosResponse[]>> return { ...res.data, - results: res.data.results.map((item) => + results: (res.data.results ?? []).map((item) => decodeMediaData(item, this.mediaType) ) as DetailFromMediaType[], }