From 37809bfc49bbd40d302d702c76a379294305072b Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Tue, 3 Feb 2026 11:17:42 -0500 Subject: [PATCH] fix: add null check for top charts bg gradient --- client/app/routes/Charts/ChartLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/routes/Charts/ChartLayout.tsx b/client/app/routes/Charts/ChartLayout.tsx index 446f7d1..90858bd 100644 --- a/client/app/routes/Charts/ChartLayout.tsx +++ b/client/app/routes/Charts/ChartLayout.tsx @@ -40,7 +40,7 @@ export default function ChartLayout({ useEffect(() => { if ((data?.items?.length ?? 0) === 0) return; - const img = (data.items[0] as any)?.item.image; + const img = (data.items[0] as any)?.item?.image; if (!img) return; average(imageUrl(img, "small"), { amount: 1 }).then((color) => {