From d61a8f5b21b069f2d55d50404a96cb5536f67c08 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Thu, 16 May 2024 00:07:32 +0200 Subject: [PATCH] Merge pull request #42223 from Nodebrute/workspaceSwitcher fix workspace switcher (cherry picked from commit e35ab02a5d58387c9c8a777b82c88059753ceed9) --- src/pages/WorkspaceSwitcherPage/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/WorkspaceSwitcherPage/index.tsx b/src/pages/WorkspaceSwitcherPage/index.tsx index b01a78b65317..d9b9d62bb539 100644 --- a/src/pages/WorkspaceSwitcherPage/index.tsx +++ b/src/pages/WorkspaceSwitcherPage/index.tsx @@ -23,7 +23,7 @@ import WorkspacesSectionHeader from './WorkspacesSectionHeader'; type WorkspaceListItem = { text: string; - policyID: string; + policyID?: string; isPolicyAdmin?: boolean; brickRoadIndicator?: BrickRoad; } & ListItem; @@ -145,7 +145,6 @@ function WorkspaceSwitcherPage() { data: [ { text: CONST.WORKSPACE_SWITCHER.NAME, - policyID: '', icons: [{source: Expensicons.ExpensifyAppIcon, name: CONST.WORKSPACE_SWITCHER.NAME, type: CONST.ICON_TYPE_AVATAR}], brickRoadIndicator: getIndicatorTypeForPolicy(undefined), isSelected: activeWorkspaceID === undefined,