[arvados] created: 2.7.0-6779-g1ab37845dc

git repository hosting git at public.arvados.org
Thu May 30 22:05:09 UTC 2024


        at  1ab37845dce421e2a89b7e76850ce1c027d4b187 (commit)


commit 1ab37845dce421e2a89b7e76850ce1c027d4b187
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Thu May 30 18:04:30 2024 -0400

    21850: Catch exception and log error if the banner can't be loaded.
    
    Fixes unhandled runtime exception overlay.
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/services/workbench2/src/views-components/baner/banner.tsx b/services/workbench2/src/views-components/baner/banner.tsx
index ac5b89439c..79fe888616 100644
--- a/services/workbench2/src/views-components/baner/banner.tsx
+++ b/services/workbench2/src/views-components/baner/banner.tsx
@@ -82,7 +82,9 @@ export const BannerComponent = (props: BannerComponentProps) => {
                                 localStorage.setItem(BANNER_LOCAL_STORAGE_KEY, JSON.stringify(bannerFileData));
                             });
                     }
-                });
+                }).catch((e) => {
+		    console.error("Failed to load banner", e);
+		});
         }
     }, [bannerUUID, keepWebInlineServiceUrl, openBanner, isOpen]);
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list