diff --git a/src/addon/mod/glossary/providers/prefetch-handler.ts b/src/addon/mod/glossary/providers/prefetch-handler.ts index 47369498e..9235c4b54 100644 --- a/src/addon/mod/glossary/providers/prefetch-handler.ts +++ b/src/addon/mod/glossary/providers/prefetch-handler.ts @@ -179,6 +179,9 @@ export class AddonModGlossaryPrefetchHandler extends CoreCourseActivityPrefetchH return Promise.all(promises); })); + // Get all categories. + promises.push(this.glossaryProvider.getAllCategories(glossary.id)); + // Prefetch data for link handlers. promises.push(this.courseProvider.getModuleBasicInfo(module.id, siteId)); promises.push(this.courseProvider.getModuleBasicInfoByInstance(glossary.id, 'glossary', siteId));