Merge pull request #3819 from alfonso-salces/MOBILE-4362
MOBILE-4362 course-link: Fix section link openingmain
commit
081172003c
|
@ -53,9 +53,9 @@ export class CoreCoursesCourseLinkHandlerService extends CoreContentLinksHandler
|
||||||
params: Params,
|
params: Params,
|
||||||
): CoreContentLinksAction[] | Promise<CoreContentLinksAction[]> {
|
): CoreContentLinksAction[] | Promise<CoreContentLinksAction[]> {
|
||||||
const courseId = parseInt(params.id, 10);
|
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 = {
|
const pageParams: Params = {
|
||||||
sectionId: sectionId || null,
|
sectionId: sectionId || undefined,
|
||||||
};
|
};
|
||||||
let sectionNumber = params.section !== undefined ? parseInt(params.section, 10) : NaN;
|
let sectionNumber = params.section !== undefined ? parseInt(params.section, 10) : NaN;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue