15088: Fix to use new login function
[arvados-workbench2.git] / src / store / link-account-panel / link-account-panel-actions.ts
index 5552882449b0d376aa3c502ca74d4c66a650c87d..e63da1a42ac838f8d089771391ceb80dd94f8dac 100644 (file)
@@ -172,7 +172,7 @@ export const startLinking = (t: LinkAccountType) =>
         services.linkAccountService.saveAccountToLink(accountToLink);
         const auth = getState().auth;
         dispatch(logout());
-        dispatch(login(auth.localCluster, auth.remoteHosts[auth.homeCluster]));
+        dispatch(login(auth.localCluster, auth.homeCluster, auth.remoteHosts));
     };
 
 export const getAccountLinkData = () =>