[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,
data: CourseScatter.assignmentsData(assignments)
}
})
,
}),
// Disable tooltip
tooltip:
@@ -83,7 +82,7 @@ export default class CourseScatter extends Vue
this.course.assignments.forEach(a =>
{
// 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
map.get(a.type).push(a);