From 86237e0a9daf1c5d7cb24d2f31ec41aa560f58b5 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Mon, 1 Mar 2021 12:11:58 -0500 Subject: [PATCH] Change get method for optional value Signed-off-by: Adam Harvey --- .../src/components/ApiExplorerPage/ApiExplorerLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/api-docs/src/components/ApiExplorerPage/ApiExplorerLayout.tsx b/plugins/api-docs/src/components/ApiExplorerPage/ApiExplorerLayout.tsx index b82166f4cd..add886fead 100644 --- a/plugins/api-docs/src/components/ApiExplorerPage/ApiExplorerLayout.tsx +++ b/plugins/api-docs/src/components/ApiExplorerPage/ApiExplorerLayout.tsx @@ -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 (