diff --git a/kolibri/plugins/coach/assets/src/modules/classSummary/dataHelpers.js b/kolibri/plugins/coach/assets/src/modules/classSummary/dataHelpers.js index b1940aa9292..192392b0399 100644 --- a/kolibri/plugins/coach/assets/src/modules/classSummary/dataHelpers.js +++ b/kolibri/plugins/coach/assets/src/modules/classSummary/dataHelpers.js @@ -90,6 +90,8 @@ export default { if (!assignment) { throw new Error('getLearnersForAssignment: invalid parameter(s)'); } + assignment.assignments = assignment.assignments || []; + assignment.learner_ids = assignment.learner_ids || []; if (!assignment.assignments.length && !assignment.learner_ids.length) { return []; }