diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
index 9226bf537d43..c0d2a87635ed 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
+++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled.tsx
@@ -338,9 +338,7 @@ export function CollapsibleNavGroupEnabled({
navLinks={navLinks}
navigateToApp={navigateToApp}
logos={logos}
- onClickBack={() => {
- setCurrentNavGroup(undefined);
- }}
+ onClickBack={() => setCurrentNavGroup(undefined)}
currentNavGroup={currentNavGroup}
shouldShrinkNavigation={!isNavOpen}
onClickShrink={closeNav}
diff --git a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx
index 9e9ecbd9c61b..168f0ede150f 100644
--- a/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx
+++ b/src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.test.tsx
@@ -7,12 +7,11 @@ import React from 'react';
import { render } from '@testing-library/react';
import { ChromeNavLink } from '../../nav_links';
import { ChromeRegistrationNavLink } from '../../nav_group';
-import { coreMock, httpServiceMock } from '../../../mocks';
+import { httpServiceMock } from '../../../mocks';
import { getLogos } from '../../../../common';
import { CollapsibleNavTop } from './collapsible_nav_group_enabled_top';
const mockBasePath = httpServiceMock.createSetupContract({ basePath: '/test' }).basePath;
-const coreStartMock = coreMock.createStart();
describe('', () => {
const getMockedNavLink = (
@@ -67,7 +66,6 @@ describe('', () => {
logos: getLogos({}, mockBasePath.serverBasePath),
shouldShrinkNavigation: false,
visibleUseCases: [],
- capabilities: coreStartMock.application.capabilities,
};
};
it('should render home icon', async () => {