Skip to content

Commit c13a39f

Browse files
xkostka2xkureck
authored andcommitted
fix(admin): fixed check of userId on Service accounts page
* fixed wrong check of userId on Service accounts page when accessing from My profile
1 parent 6469a9c commit c13a39f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/admin-gui/src/app/users/pages/user-detail-page/user-settings/user-settings-service-identities/user-settings-service-identities.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class UserSettingsServiceIdentitiesComponent implements OnInit {
4141

4242
this.route.parent.params.subscribe((params) => {
4343
this.userId = Number(params['userId']);
44-
if (this.userId === undefined) {
44+
if (!this.userId) {
4545
this.targetTitle = 'SERVICE';
4646
this.targetDescription = 'SELF';
4747
this.userId = this.store.getPerunPrincipal().userId;

0 commit comments

Comments
 (0)