[ARVADOS-WORKBENCH2] updated: 2.3.0-164-gb174d2cd

Git user git at public.arvados.org
Tue Feb 15 21:56:56 UTC 2022


Summary of changes:
 src/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  b174d2cdf5fbc3c2ea42a1f6157c82c724d4c977 (commit)
      from  b68d6b620d1e442bd2a231fa8a6d50b2678215f5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b174d2cdf5fbc3c2ea42a1f6157c82c724d4c977
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Tue Feb 15 18:55:33 2022 -0300

    18315: Fixes websocket init.
    
    When accessing WB2 using the '/token?api_token=xxx' URL, the websocket
    service was being initialized with 'api_token=undefined'.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/src/index.tsx b/src/index.tsx
index 0b04c29e..c160f96c 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -183,7 +183,7 @@ const initListener = (history: History, store: RootStore, services: ServiceRepos
     let initialized = false;
     return async () => {
         const { router, auth } = store.getState();
-        if (router.location && auth.user && !initialized) {
+        if (router.location && auth.user && services.authService.getApiToken() && !initialized) {
             initialized = true;
             initWebSocket(config, services.authService, store);
             await store.dispatch(loadWorkbench());

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list