Commit 5569280b authored by Zach Perkins's avatar Zach Perkins

Fixed some section loading bugs

parent 8ea7b63d
......@@ -78,7 +78,6 @@ class Schedule {
});
});
console.log(eventData);
callback(eventData);
}
......@@ -99,8 +98,8 @@ class Schedule {
}
async addCRNS(crns) {
crns.forEach((crn) => {
this.addEvent(SectionLoader.getSection(crn));
crns.forEach(async (crn) => {
this.addEvent(await SectionLoader.getSection(crn));
});
}
......
......@@ -19,8 +19,8 @@ class InstructorsController < ApplicationController
@past = []
@instructor.course_sections.map(&:course).each do |c|
@past << c unless @past.select { |past| past.full_name == c.full_name }.count.positive?
end
end @past << c unless @past.select { |past| past.full_name == c.full_name }.count.positive?
@past.sort_by!(&:full_name)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment