Fix for when database courses/campaigns don't match

This commit is contained in:
phoenixeliot 2016-07-19 14:13:24 -07:00
parent 01a8312617
commit 6fdda491bd

View file

@ -57,6 +57,7 @@ block content
select.level-select.form-control
if view.campaigns.loaded
- var campaign = view.campaigns.get(course.get('campaignID'))
if campaign
each level, levelIndex in campaign.getLevels().models
- var levelNumber = campaign.getLevelNumber(level.get('original'), levelIndex + 1)
option(value=level.get('slug'))