Skip to content

Commit

Permalink
chore: fall back on title
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 28, 2024
1 parent 5493388 commit ac63e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nextjs/src/app/image-spike/image-spike.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit ac63e4a

Please sign in to comment.