diff --git a/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts b/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts index 0b4fc30fe..bb06c3bc5 100644 --- a/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts +++ b/src/addons/mod/assign/feedback/editpdf/component/editpdf.ts @@ -34,6 +34,8 @@ export class AddonModAssignFeedbackEditPdfComponent extends AddonModAssignFeedba */ async ngOnInit(): Promise { if (this.plugin) { + this.plugin.fileareas = this.plugin.fileareas?.filter((filearea) => filearea.area === 'download'); + this.files = AddonModAssign.getSubmissionPluginAttachments(this.plugin); } }