From 531c72899cf5b2cbc90a22cf22709d4b382f412b Mon Sep 17 00:00:00 2001 From: Gabe Farrell <90876006+gabehf@users.noreply.github.com> Date: Tue, 3 Feb 2026 11:23:30 -0500 Subject: [PATCH] fix: add null check for top charts bg gradient (#193) --- 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) => {