Change get method for optional value

Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Adam Harvey
2021-03-01 12:11:58 -05:00
parent 439805d1d3
commit 86237e0a9d
@@ -23,7 +23,7 @@ type Props = {
export const ApiExplorerLayout = ({ children }: Props) => {
const configApi = useApi(configApiRef);
const generatedSubtitle = `${
configApi.getString('organization.name') ?? 'Backstage'
configApi.getOptionalString('organization.name') ?? 'Backstage'
} API Explorer`;
return (
<Page themeId="home">