Skip to content

Bugfix: error in Dashboard when unknown course values

Grigor Malo requested to merge unknown-course-fix into master

The error is happening in the deployed site because there are questions created in the past that reference courses that are no longer in the metadata file. The following changes handle such cases:

  • return null for course when it is not found in the metadata, or when learning objective/understanding for said course is not chosen yet
  • render "Unknown course" string in QuestionItem if course is null, and don't create empty list item if there is no learning objective/understanding to display
  • handle erroneous course values in Metadata form by removing course field and ability to add course, and display a warning string instead

Merge request reports