mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
Fixed bug with incompletely added levels jamming the campaign editor.
This commit is contained in:
parent
38c6d6f531
commit
22c2c7df63
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ module.exports = class CampaignView extends RootView
|
|||
determineNextLevel: (levels) ->
|
||||
foundNext = false
|
||||
for level in levels
|
||||
level.nextLevels = (reward.level for reward in level.rewards when reward.level)
|
||||
level.nextLevels = (reward.level for reward in level.rewards ? [] when reward.level)
|
||||
unless foundNext
|
||||
for nextLevelOriginal in level.nextLevels
|
||||
nextLevel = _.find levels, original: nextLevelOriginal
|
||||
|
|
Loading…
Reference in a new issue