mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fix for when database courses/campaigns don't match
This commit is contained in:
parent
01a8312617
commit
6fdda491bd
1 changed files with 10 additions and 9 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue