mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Don't risk destruction of level unlock links
This commit is contained in:
parent
55f7b4a115
commit
71fc8d5230
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ module.exports = class CampaignEditorView extends RootView
|
|||
@$el.find('#campaign-view').hide()
|
||||
|
||||
updateRewardsForLevel: (level, rewards) ->
|
||||
return # Don't risk destruction of level unlock links
|
||||
achievements = @supermodel.getModels(Achievement)
|
||||
achievements = (a for a in achievements when a.get('related') is level.get('original'))
|
||||
for achievement in achievements
|
||||
|
|
Loading…
Reference in a new issue