Do not fetch sessions for course instances that do not have classrooms

This commit is contained in:
Scott Erickson 2016-09-06 12:43:06 -07:00
parent 914dd16530
commit f29f4cb82b

View file

@ -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',