diff --git a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx index 79578cb14d..8d1017e84e 100644 --- a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx +++ b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx @@ -17,15 +17,11 @@ export const ApiDetails = (props: IApiDetailsProps): ReactElement => { const environment = props.uiConfig.environment; const updateNotification = formatUpdateNotification(props.uiConfig); - const buildInfo = buildNumber ? ({buildNumber}) : ''; + const buildInfo = buildNumber ? ({buildNumber}) : ''; return (
- {name} {version} {buildInfo} - ({environment})} - /> + {name} {environment ? environment : ''} {version} {buildInfo} Unleash + test + - - ( - test - ) -
@@ -46,13 +43,10 @@ exports[`renders correctly with ui-config 1`] = ` > Unleash + test + 1.1.0 - - ( - test - ) -
@@ -82,6 +76,7 @@ exports[`renders correctly with versionInfo 1`] = ` > Unleash + 1.2.3 @@ -118,6 +113,7 @@ exports[`renders correctly without uiConfig 1`] = ` > Unleash + 1.1.0 diff --git a/frontend/src/component/menu/Footer/__snapshots__/Footer.test.tsx.snap b/frontend/src/component/menu/Footer/__snapshots__/Footer.test.tsx.snap index 0eb22cb190..6d422648ed 100644 --- a/frontend/src/component/menu/Footer/__snapshots__/Footer.test.tsx.snap +++ b/frontend/src/component/menu/Footer/__snapshots__/Footer.test.tsx.snap @@ -24,6 +24,7 @@ exports[`should render DrawerMenu 1`] = ` > Unleash + 5.x @@ -570,6 +571,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = ` > Unleash + 5.x