You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2021/08/24 14:54:50 UTC

[brooklyn-ui] branch master updated: more gracefully handle types not available on home page

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 0cae646  more gracefully handle types not available on home page
0cae646 is described below

commit 0cae646e28af0fd7890240aebce2d2214aae74cb
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Tue Aug 24 15:54:29 2021 +0100

    more gracefully handle types not available on home page
---
 ui-modules/home/app/views/main/main.controller.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui-modules/home/app/views/main/main.controller.js b/ui-modules/home/app/views/main/main.controller.js
index a3bdff1..9032c08 100644
--- a/ui-modules/home/app/views/main/main.controller.js
+++ b/ui-modules/home/app/views/main/main.controller.js
@@ -43,7 +43,10 @@ export const mainState = {
         catalogApps: ['catalogApi', (catalogApi) => {
             return catalogApi.getTypes({params: {supertype: 'org.apache.brooklyn.api.entity.Application'}}).then(
                 applications => filterCatalogQuickLaunch(applications.filter(application => application.template))
-            );
+            ).catch(prob => {
+                console.warn("Error initializing: ", prob);
+                return [];
+            });
         }]
     }
 };