14841: Add link to workbench v1
[arvados-workbench2.git] / src / store / auth / auth-reducer.ts
index 0504dd480086dde66b56ca606070686f6583948a..e7087b58a8c69984f607effae376c44270ab1394 100644 (file)
@@ -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 }) => {