15530: Don't link if remoteHostConfig is undefined
[arvados-workbench2.git] / src / views / site-manager-panel / site-manager-panel-root.tsx
index 9ba7a2d836d5be439e7ec85824df1ed679792db0..c0a64e1c40d7a7c56890fd3b8fa89f390c1b2448 100644 (file)
@@ -123,7 +123,7 @@ export const SiteManagerPanelRoot = compose(
                     <Grid item xs={12}>
                         <Typography paragraph={true} >
                             You can log in to multiple Arvados sites here, then use the multi-site search page to search collections and projects on all sites at once.
-                                                                                                                         </Typography>
+                                                                                                                            </Typography>
                     </Grid>
                 </Grid>
                 <Grid item xs={12}>
@@ -141,7 +141,9 @@ export const SiteManagerPanelRoot = compose(
                             {sessions.map((session, index) => {
                                 const validating = session.status === SessionStatus.BEING_VALIDATED;
                                 return <TableRow key={index} className={classes.tableRow}>
-                                    <TableCell><a href={remoteHostsConfig[session.clusterId].workbench2Url}>{session.clusterId}</a></TableCell>
+                                    <TableCell>{remoteHostsConfig[session.clusterId] ?
+                                        <a href={remoteHostsConfig[session.clusterId].workbench2Url}>{session.clusterId}</a>
+                                        : session.clusterId}</TableCell>
                                     <TableCell>{session.remoteHost}</TableCell>
                                     <TableCell>{validating ? <CircularProgress size={20} /> : session.username}</TableCell>
                                     <TableCell>{validating ? <CircularProgress size={20} /> : session.email}</TableCell>