From 04e3add4d5234f7f599294c177db88ac26148723 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 27 May 2026 18:01:34 +0000 Subject: [PATCH] fix(dashboard): Home page crashed when latest_video.top_tickers undefined /api/meet-kevin/dashboard returns a latest_video summary that doesn't include top_tickers (only the list endpoint does). Calling .slice() on undefined crashed the whole page. Guard with ?? [] so the chip row simply renders empty when the dashboard endpoint hasn't enriched the latest video yet. --- dashboard/src/pages/meetKevin/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/pages/meetKevin/Home.tsx b/dashboard/src/pages/meetKevin/Home.tsx index 44e8b4c..4710ef0 100644 --- a/dashboard/src/pages/meetKevin/Home.tsx +++ b/dashboard/src/pages/meetKevin/Home.tsx @@ -118,7 +118,7 @@ export default function MeetKevinHome() { {video.outlook} )} - {video.top_tickers.slice(0, 5).map((t) => ( + {(video.top_tickers ?? []).slice(0, 5).map((t) => (