14813: Fixes remote cluster config state
[arvados-workbench2.git] / src / store / auth / auth-action.ts
index 6356eaa8bdc9e5b8771feacb7ea2c26241842002..b889adf571113494f32fee49843ebeabe527f5a9 100644 (file)
@@ -91,6 +91,7 @@ const init = (config: Config) => (dispatch: Dispatch, getState: () => RootState,
         Axios.get<ClusterConfigJSON>(getClusterConfigURL(config.remoteHosts[k]))
             .then(response => {
                 const remoteConfig = new Config();
+                remoteConfig.uuidPrefix = response.data.ClusterID;
                 remoteConfig.workbench2Url = response.data.Services.Workbench2.ExternalURL;
                 mapRemoteHosts(response.data, remoteConfig);
                 dispatch(authActions.REMOTE_CLUSTER_CONFIG({ config: remoteConfig}));