[F] Fix null case detection
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user