X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d8b1643373ec164a5ae57cd10a951ea01f37f7d7..f41a161af85e740c85ecc6a805644ff712cd4620:/src/store/auth/auth-reducer.ts diff --git a/src/store/auth/auth-reducer.ts b/src/store/auth/auth-reducer.ts index 0504dd48..e7087b58 100644 --- a/src/store/auth/auth-reducer.ts +++ b/src/store/auth/auth-reducer.ts @@ -33,9 +33,12 @@ export const authReducer = (services: ServiceRepository) => (state = initialStat SAVE_API_TOKEN: (token: string) => { return { ...state, apiToken: token }; }, - CONFIG: ({ uuidPrefix, remoteHosts }) => { + CONFIG: ({ config }) => { return { - ...state, localCluster: uuidPrefix, remoteHosts, homeCluster: uuidPrefix + ...state, + localCluster: config.uuidPrefix, + remoteHosts: config.remoteHosts, + homeCluster: config.uuidPrefix }; }, INIT: ({ user, token }) => {