X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/eb8af005bbc329134a5047b263cc983e349a5fa3..7f0f12c40238f3eb12a51877a755cf22357e0767:/services/workbench2/src/views-components/baner/banner.tsx

diff --git a/services/workbench2/src/views-components/baner/banner.tsx b/services/workbench2/src/views-components/baner/banner.tsx
index 79fe888616..71f5907667 100644
--- a/services/workbench2/src/views-components/baner/banner.tsx
+++ b/services/workbench2/src/views-components/baner/banner.tsx
@@ -61,6 +61,7 @@ export const BannerComponent = (props: BannerComponentProps) => {
 
     useEffect(() => {
         if (!!bannerUUID && bannerUUID !== "") {
+            try {
             servicesProvider
                 .getServices()
                 .collectionService.files(bannerUUID)
@@ -82,9 +83,10 @@ export const BannerComponent = (props: BannerComponentProps) => {
                                 localStorage.setItem(BANNER_LOCAL_STORAGE_KEY, JSON.stringify(bannerFileData));
                             });
                     }
-                }).catch((e) => {
-		    console.error("Failed to load banner", e);
-		});
+                })
+            } catch (e) {
+                console.error("Failed to load banner", e);
+            }
         }
     }, [bannerUUID, keepWebInlineServiceUrl, openBanner, isOpen]);
 
