From ac63e4a16d2cd746e110d640063afc63919fe566 Mon Sep 17 00:00:00 2001 From: Tom Wise <79859203+tomwisecodes@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:24:42 +0000 Subject: [PATCH] chore: fall back on title --- apps/nextjs/src/app/image-spike/image-spike.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/nextjs/src/app/image-spike/image-spike.tsx b/apps/nextjs/src/app/image-spike/image-spike.tsx index ab11b4ea5..154de9cb0 100644 --- a/apps/nextjs/src/app/image-spike/image-spike.tsx +++ b/apps/nextjs/src/app/image-spike/image-spike.tsx @@ -5,7 +5,7 @@ import Link from "next/link"; const ImageSpike = ({ lessons }: { lessons: any }) => { const lessonTitles = lessons.map((lesson: any) => ({ sessionId: lesson.id, - lessonTitle: lesson.output.lessonPlan.title, + lessonTitle: lesson?.output?.lessonPlan?.title || "", })); return (