MOBILE-4362 course-link: Fix section link opening

main
Alfonso Salces 2023-10-16 10:28:39 +02:00
parent 42f6fc6843
commit 965779d72c
1 changed files with 2 additions and 2 deletions

View File

@ -53,9 +53,9 @@ export class CoreCoursesCourseLinkHandlerService extends CoreContentLinksHandler
params: Params,
): CoreContentLinksAction[] | Promise<CoreContentLinksAction[]> {
const courseId = parseInt(params.id, 10);
const sectionId = params.sectionid ? parseInt(params.sectionid, 10) : null;
const sectionId = params.sectionid ? parseInt(params.sectionid, 10) : undefined;
const pageParams: Params = {
sectionId: sectionId || null,
sectionId: sectionId || undefined,
};
let sectionNumber = params.section !== undefined ? parseInt(params.section, 10) : NaN;