fix: use entity as fallback

Signed-off-by: Matteo Pietro Dazzi <matteopietro.dazzi@gmail.com>
This commit is contained in:
Matteo Pietro Dazzi
2022-10-11 14:16:38 +02:00
parent 847fc588a6
commit c62fa237d8
2 changed files with 3 additions and 3 deletions
@@ -17,6 +17,7 @@
import React, { PropsWithChildren, useEffect } from 'react';
import Helmet from 'react-helmet';
import { Grid } from '@material-ui/core';
import { Skeleton } from '@material-ui/lab';
import CodeIcon from '@material-ui/icons/Code';
@@ -37,7 +38,6 @@ import { Header, HeaderLabel } from '@backstage/core-components';
import { useRouteRef, configApiRef, useApi } from '@backstage/core-plugin-api';
import { rootRouteRef } from '../../../routes';
import { Grid } from '@material-ui/core';
const skeleton = <Skeleton animation="wave" variant="text" height={40} />;
@@ -103,7 +103,7 @@ export const TechDocsReaderPageHeader = (
const labels = (
<>
<HeaderLabel
label="Entity"
label={entityMetadata?.kind || 'Entity'}
value={
<EntityRefLink
color="inherit"