mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
👕Fix linter warning in mock course details view
warn: Linting of app/views/courses/mock1/CourseDetailsView.coffee: warn: ensure_comprehensions at line 50.
This commit is contained in:
parent
ede3b35368
commit
a62e0a8fe6
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ module.exports = class CourseDetailsView extends RootView
|
|||
onChangeSession: (e) ->
|
||||
@showExpandedProgress = false
|
||||
newSessionValue = $(e.target).val()
|
||||
@currentInstanceIndex = index for val, index in @instances when val.name is newSessionValue
|
||||
for val, index in @instances when val.name is newSessionValue
|
||||
@currentInstanceIndex = index
|
||||
@updateLevelMaps()
|
||||
@render?()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue