From 9d668dceb34c839af93bb4dd28e17154f68f5af9 Mon Sep 17 00:00:00 2001 From: Nathan Stitt Date: Mon, 7 Jun 2021 16:34:34 -0500 Subject: [PATCH] placeholder steps lack a result when unworked --- tutor/src/components/dropped-question.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutor/src/components/dropped-question.tsx b/tutor/src/components/dropped-question.tsx index 8a80609569..6e5352ac60 100644 --- a/tutor/src/components/dropped-question.tsx +++ b/tutor/src/components/dropped-question.tsx @@ -118,7 +118,7 @@ DroppedQuestionHeadingIndicator.displayName = 'DroppedQuestionHeadingIndicator' interface DroppedTutorQuestionIndicatorProps { - result: TaskPlanScoreStudentQuestion + result?: TaskPlanScoreStudentQuestion preventOverflow?: boolean size?: number } @@ -128,7 +128,7 @@ const DroppedTutorQuestionIndicator: React.FC { - if (!result.droppedQuestion) return null + if (!result?.droppedQuestion) return null let tooltip if (result.droppedQuestion.drop_method == 'full_credit') {