MOBILE-3833 competencies: Fix non required param

main
Pau Ferrer Ocaña 2021-09-30 17:08:01 +02:00
parent 1fbb4c3880
commit a549acadcb
1 changed files with 2 additions and 2 deletions

View File

@ -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);