16005: Open collection and project in new tab feature added
[arvados-workbench2.git] / src / store / store.ts
index a6e0cbbe8556459a51abf0f004f6fd90145b9120..517368aa43badea0d26c3bd6dbb54701257e0572 100644 (file)
@@ -136,7 +136,7 @@ export function configureStore(history: History, services: ServiceRepository, co
         const state = store.getState();
 
         if (state.auth && state.auth.apiToken) {
-            handleRedirects(config);
+            handleRedirects(state.auth.apiToken, config);
         }
 
         return next(action);
@@ -163,6 +163,7 @@ export function configureStore(history: History, services: ServiceRepository, co
         collectionsContentAddress,
         subprocessMiddleware,
     ];
+
     const enhancer = composeEnhancers(applyMiddleware(redirectToMiddleware, ...middlewares));
     return createStore(rootReducer, enhancer);
 }