Skip to content

Commit

Permalink
Merge pull request #47527 from Krishna2323/krishna2323/issue/47525
Browse files Browse the repository at this point in the history
fix: Workspace switcher - Empty workspace switcher does not have 'Create a workspace' modal.
(cherry picked from commit 414157d)

(CP triggered by Beamanator)
  • Loading branch information
yuwenmemon authored and OSBotify committed Aug 16, 2024
1 parent 7eabb77 commit 6f11d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/WorkspaceSwitcherPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ function WorkspaceSwitcherPage() {
textInputValue={searchTerm}
onChangeText={setSearchTerm}
headerMessage={headerMessage}
listFooterContent={shouldShowCreateWorkspace ? WorkspaceCardCreateAWorkspaceInstance : null}
listEmptyContent={WorkspaceCardCreateAWorkspaceInstance}
shouldShowListEmptyContent={shouldShowCreateWorkspace}
initiallyFocusedOptionKey={activeWorkspaceID ?? CONST.WORKSPACE_SWITCHER.NAME}
showLoadingPlaceholder={fetchStatus.status === 'loading' || !didScreenTransitionEnd}
/>
Expand Down

0 comments on commit 6f11d49

Please sign in to comment.