mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed leaderboard level projection issue.
This commit is contained in:
parent
98b749eb1b
commit
d082aa3754
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ module.exports = class LeaderboardModal extends ModalView
|
|||
constructor: (options) ->
|
||||
super options
|
||||
@levelSlug = @options.levelSlug
|
||||
@level = @supermodel.loadModel(new Level({_id: @levelSlug}, {project: ['name', 'i18n', 'scoreType', 'original']}), 'level').model
|
||||
level = new Level({_id: @levelSlug})
|
||||
level.project = ['name', 'i18n', 'scoreType', 'original']
|
||||
@level = @supermodel.loadModel(level, 'level').model
|
||||
|
||||
getRenderData: (c) ->
|
||||
c = super c
|
||||
|
|
Loading…
Reference in a new issue