From 0fb7638c2916931683e75d4a99edfe4b1fd2da39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 7 Jan 2019 12:50:50 +0100 Subject: [PATCH] MOBILE-2795 workshop: Fix prefetch grade reports --- src/addon/mod/workshop/providers/prefetch-handler.ts | 4 ++-- src/app/app.scss | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/addon/mod/workshop/providers/prefetch-handler.ts b/src/addon/mod/workshop/providers/prefetch-handler.ts index 651e1b735..d7e213044 100644 --- a/src/addon/mod/workshop/providers/prefetch-handler.ts +++ b/src/addon/mod/workshop/providers/prefetch-handler.ts @@ -297,13 +297,13 @@ export class AddonModWorkshopPrefetchHandler extends CoreCourseActivityPrefetchH userIds.push(grade.userid); userIds.push(grade.gradeoverby); - grade.reviewedby.forEach((assessment) => { + grade.reviewedby && grade.reviewedby.forEach((assessment) => { userIds.push(assessment.userid); userIds.push(assessment.gradinggradeoverby); assessments[assessment.assessmentid] = assessment; }); - grade.reviewerof.forEach((assessment) => { + grade.reviewerof && grade.reviewerof.forEach((assessment) => { userIds.push(assessment.userid); userIds.push(assessment.gradinggradeoverby); assessments[assessment.assessmentid] = assessment; diff --git a/src/app/app.scss b/src/app/app.scss index 3160c9009..0889d3c2f 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -852,7 +852,6 @@ ion-app.app-root { core-loading { flex-grow: 1; - position: relative !important; .core-loading-content { position: absolute;