GroupsPane: improve loading state

This commit is contained in:
Liam Fitzgerald 2020-10-07 10:20:53 +10:00
parent 66f781fe51
commit 71251501e0

View File

@ -136,6 +136,10 @@ export function GroupsPane(props: GroupsPaneProps) {
const appPath = `${isShip ? '/ship/' : '/'}${host}/${name}`; const appPath = `${isShip ? '/ship/' : '/'}${host}/${name}`;
const association = isShip ? associations.graph[appPath] : associations[appName][appPath]; const association = isShip ? associations.graph[appPath] : associations[appName][appPath];
const resourceUrl = `${baseUrl}/join/${app}${appPath}`; const resourceUrl = `${baseUrl}/join/${app}${appPath}`;
if (!association) {
return <Loading />;
}
return ( return (
<Skeleton <Skeleton
recentGroups={recentGroups} recentGroups={recentGroups}