Change get method for optional value

This commit is contained in:
Adam Harvey
2021-03-01 12:11:58 -05:00
parent 94c7c25a86
commit 7a1b6133ae
@@ -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">