Skip to content

Commit

Permalink
Merge pull request #3638 from openstax/fix/null-result
Browse files Browse the repository at this point in the history
placeholder steps lack a result when unworked
  • Loading branch information
nathanstitt authored Jun 7, 2021
2 parents ff4c424 + 9d668dc commit a77c44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutor/src/components/dropped-question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ DroppedQuestionHeadingIndicator.displayName = 'DroppedQuestionHeadingIndicator'


interface DroppedTutorQuestionIndicatorProps {
result: TaskPlanScoreStudentQuestion
result?: TaskPlanScoreStudentQuestion
preventOverflow?: boolean
size?: number
}
Expand All @@ -128,7 +128,7 @@ const DroppedTutorQuestionIndicator: React.FC<DroppedTutorQuestionIndicatorProps
preventOverflow = true,
size = 1,
}) => {
if (!result.droppedQuestion) return null
if (!result?.droppedQuestion) return null

let tooltip
if (result.droppedQuestion.drop_method == 'full_credit') {
Expand Down

0 comments on commit a77c44a

Please sign in to comment.