diff --git a/client/src/pages/presentationEditor/PresentationEditorPage.tsx b/client/src/pages/presentationEditor/PresentationEditorPage.tsx index 01e80a3a53b0274d698db64e33ec0ec6c9d06a2f..bd854980903ff890a0e58a75c6cbbf15611c03eb 100644 --- a/client/src/pages/presentationEditor/PresentationEditorPage.tsx +++ b/client/src/pages/presentationEditor/PresentationEditorPage.tsx @@ -134,7 +134,7 @@ const PresentationEditorPage: React.FC = () => { } const renderSlideIcon = (slide: RichSlide) => { - switch (slide.questions[0].type_id) { + switch (slide.questions && slide.questions[0].type_id) { case 0: return <InfoOutlinedIcon></InfoOutlinedIcon> // information slide case 1: