From a549acadcbe35d7ee50d361edbbc22b866e302d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 30 Sep 2021 17:08:01 +0200 Subject: [PATCH] MOBILE-3833 competencies: Fix non required param --- .../pages/coursecompetencies/coursecompetencies.page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/competency/pages/coursecompetencies/coursecompetencies.page.ts b/src/addons/competency/pages/coursecompetencies/coursecompetencies.page.ts index cbe9a49eb..82c7394dc 100644 --- a/src/addons/competency/pages/coursecompetencies/coursecompetencies.page.ts +++ b/src/addons/competency/pages/coursecompetencies/coursecompetencies.page.ts @@ -36,7 +36,7 @@ export class AddonCompetencyCourseCompetenciesPage implements OnInit { user?: CoreUserProfile; courseId!: number; - protected userId!: number; + protected userId?: number; /** * View loaded. @@ -44,7 +44,7 @@ export class AddonCompetencyCourseCompetenciesPage implements OnInit { ngOnInit(): void { try { this.courseId = CoreNavigator.getRequiredRouteNumberParam('courseId'); - this.userId = CoreNavigator.getRequiredRouteNumberParam('userId'); + this.userId = CoreNavigator.getRouteNumberParam('userId'); } catch (error) { CoreDomUtils.showErrorModal(error);