Skip to content

Commit

Permalink
remove unused props
Browse files Browse the repository at this point in the history
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
  • Loading branch information
yuye-aws committed Aug 16, 2023
1 parent c87a581 commit 75a446a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/core/public/chrome/ui/header/collapsible_nav_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ interface Props {
}

function getFilteredWorkspaceList(
workspaces: WorkspaceStart,
workspaceList: WorkspaceAttribute[],
currentWorkspace: WorkspaceAttribute | null
): WorkspaceAttribute[] {
Expand All @@ -52,11 +51,7 @@ export function CollapsibleNavHeader({ workspaces, getUrlForApp, basePath }: Pro
const workspaceEnabled = useObservable(workspaces.workspaceEnabled$, false);
const workspaceList = useObservable(workspaces.workspaceList$, []);
const currentWorkspace = useObservable(workspaces.currentWorkspace$, null);
const filteredWorkspaceList = getFilteredWorkspaceList(
workspaces,
workspaceList,
currentWorkspace
);
const filteredWorkspaceList = getFilteredWorkspaceList(workspaceList, currentWorkspace);
const defaultHeaderName = i18n.translate(
'core.ui.primaryNav.workspacePickerMenu.defaultHeaderName',
{
Expand Down

0 comments on commit 75a446a

Please sign in to comment.