mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Do not fetch sessions for course instances that do not have classrooms
This commit is contained in:
parent
914dd16530
commit
f29f4cb82b
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ module.exports = class CoursesView extends RootView
|
|||
|
||||
onCourseInstancesLoaded: ->
|
||||
for courseInstance in @courseInstances.models
|
||||
continue if not courseInstance.get('classroomID')
|
||||
courseID = courseInstance.get('courseID')
|
||||
courseInstance.sessions = new CocoCollection([], {
|
||||
url: courseInstance.url() + '/my-course-level-sessions',
|
||||
|
|
Loading…
Reference in a new issue