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;