[F] Fix null case detection

This commit is contained in:
Hykilpikonna
2019-10-20 11:47:40 -04:00
parent 1ef08c17ec
commit 2150a563eb
@@ -58,8 +58,7 @@ export default class CourseScatter extends Vue
name: type, name: type,
data: CourseScatter.assignmentsData(assignments) data: CourseScatter.assignmentsData(assignments)
} }
}) }),
,
// Disable tooltip // Disable tooltip
tooltip: tooltip:
@@ -83,7 +82,7 @@ export default class CourseScatter extends Vue
this.course.assignments.forEach(a => this.course.assignments.forEach(a =>
{ {
// Null case, create empty array // Null case, create empty array
if (map.has(a.type)) map.set(a.type, []); if (!map.has(a.type)) map.set(a.type, []);
// Put data // Put data
map.get(a.type).push(a); map.get(a.type).push(a);