From 5b322d49e63328dc5b0547ae10246097612c8c4d Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Sat, 7 Dec 2024 10:56:00 +0530 Subject: [PATCH] fix: series page breaking if season is not loaded --- src/routes/_api/series/$id.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/_api/series/$id.tsx b/src/routes/_api/series/$id.tsx index 2536af9..922ef11 100644 --- a/src/routes/_api/series/$id.tsx +++ b/src/routes/_api/series/$id.tsx @@ -853,7 +853,7 @@ function SeriesTitlePage() { }} > - {seasons.data?.Items?.[Number(currentSeason)].Name} + {seasons.data?.Items?.[Number(currentSeason)]?.Name}