packages/config: flip around must* and get* to get* and getOptional*

This commit is contained in:
Patrik Oldsberg
2020-06-17 20:10:44 +02:00
parent 31585800a4
commit 3dcef70e3c
7 changed files with 47 additions and 51 deletions
@@ -39,7 +39,8 @@ import {
} from '@backstage/core';
const WelcomePage: FC<{}> = () => {
const appTitle = useApi(configApiRef).getString('app.title') ?? 'Backstage';
const appTitle =
useApi(configApiRef).getOptionalString('app.title') ?? 'Backstage';
const profile = { givenName: '' };
return (