Skip to content

Commit

Permalink
Merge pull request #3819 from alfonso-salces/MOBILE-4362
Browse files Browse the repository at this point in the history
MOBILE-4362 course-link: Fix section link opening
  • Loading branch information
NoelDeMartin authored Oct 16, 2023
2 parents c79accb + 965779d commit 0811720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/features/courses/services/handlers/course-link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0811720

Please sign in to comment.