[ARVADOS-WORKBENCH2] updated: 1.3.0-263-g154991e8
Git user
git at public.curoverse.com
Thu Dec 27 07:17:56 EST 2018
Summary of changes:
src/store/users/users-actions.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
via 154991e8c07361906eab8a1fdefa00858bbc6818 (commit)
from 20657bc90bdb96c85eb5b50e80d09ae4978e7c7f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 154991e8c07361906eab8a1fdefa00858bbc6818
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Thu Dec 27 13:17:41 2018 +0100
refs #14565-incorect-uuid-passed
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/store/users/users-actions.ts b/src/store/users/users-actions.ts
index da9fe3c1..9b721e60 100644
--- a/src/store/users/users-actions.ts
+++ b/src/store/users/users-actions.ts
@@ -51,9 +51,8 @@ export const openSetupShellAccount = (uuid: string) =>
export const loginAs = (uuid: string) =>
async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- const userUuid = getState().auth.user!.uuid;
const clients = await services.apiClientAuthorizationService.list();
- const client = clients.items.find(it => it.uuid === userUuid);
+ const client = clients.items.find(it => it.uuid === uuid);
dispatch<any>(saveApiToken(client!.apiToken));
dispatch<any>(getUserDetails()).then(() => {
location.reload();
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list