From 3ec049e76df1c66a80026f0cb1d83bfea5178319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Mon, 19 Apr 2021 16:54:46 +0200 Subject: [PATCH] fix(users): update session the correct way (DSP-690) (#419) --- src/app/system/users/users-list/users-list.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/system/users/users-list/users-list.component.ts b/src/app/system/users/users-list/users-list.component.ts index 29a87be645..14a97bb5de 100644 --- a/src/app/system/users/users-list/users-list.component.ts +++ b/src/app/system/users/users-list/users-list.component.ts @@ -266,7 +266,7 @@ export class UsersListComponent implements OnInit { // open dialog to confirm and // redirect to project page // update the cache of logged-in user and the session - this._session.setSession(this.session.user.jwt, this.session.user.name, 'username'); + this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe(); if (this.sysAdmin) { // logged-in user is system admin: @@ -295,7 +295,7 @@ export class UsersListComponent implements OnInit { } else { // the logged-in user (system admin) added himself as project admin // update the cache of logged-in user and the session - this._session.setSession(this.session.user.jwt, this.session.user.name, 'username'); + this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe(); this.refreshParent.emit(); } },