From 71251501e039579e8e614a3d91d90849c78f235a Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 7 Oct 2020 10:20:53 +1000 Subject: [PATCH] GroupsPane: improve loading state --- pkg/interface/src/views/landscape/components/GroupsPane.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/interface/src/views/landscape/components/GroupsPane.tsx b/pkg/interface/src/views/landscape/components/GroupsPane.tsx index 6798304c4..ab592533c 100644 --- a/pkg/interface/src/views/landscape/components/GroupsPane.tsx +++ b/pkg/interface/src/views/landscape/components/GroupsPane.tsx @@ -136,6 +136,10 @@ export function GroupsPane(props: GroupsPaneProps) { const appPath = `${isShip ? '/ship/' : '/'}${host}/${name}`; const association = isShip ? associations.graph[appPath] : associations[appName][appPath]; const resourceUrl = `${baseUrl}/join/${app}${appPath}`; + + if (!association) { + return ; + } return (