Skip to content

Commit 3ec049e

Browse files
authored
fix(users): update session the correct way (DSP-690) (#419)
1 parent 30294de commit 3ec049e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/app/system/users/users-list/users-list.component.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class UsersListComponent implements OnInit {
266266
// open dialog to confirm and
267267
// redirect to project page
268268
// update the cache of logged-in user and the session
269-
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username');
269+
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe();
270270

271271
if (this.sysAdmin) {
272272
// logged-in user is system admin:
@@ -295,7 +295,7 @@ export class UsersListComponent implements OnInit {
295295
} else {
296296
// the logged-in user (system admin) added himself as project admin
297297
// update the cache of logged-in user and the session
298-
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username');
298+
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe();
299299
this.refreshParent.emit();
300300
}
301301
},

0 commit comments

Comments
 (0)