MOBILE-3833 label: Fix error when downloading course with label
parent
5a2016cb67
commit
fe55a8a59f
|
@ -63,5 +63,13 @@ export class AddonModLabelPrefetchHandlerService extends CoreCourseResourcePrefe
|
||||||
await CoreUtils.allPromises(promises);
|
await CoreUtils.allPromises(promises);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
async loadContents(module: CoreCourseAnyModuleData): Promise<void> {
|
||||||
|
// Labels don't have contents.
|
||||||
|
module.contents = [];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
export const AddonModLabelPrefetchHandler = makeSingleton(AddonModLabelPrefetchHandlerService);
|
export const AddonModLabelPrefetchHandler = makeSingleton(AddonModLabelPrefetchHandlerService);
|
||||||
|
|
Loading…
Reference in New Issue