Skip to content

Commit 6f11d49

Browse files
yuwenmemonOSBotify
authored andcommitted
Merge pull request #47527 from Krishna2323/krishna2323/issue/47525
fix: Workspace switcher - Empty workspace switcher does not have 'Create a workspace' modal. (cherry picked from commit 414157d) (CP triggered by Beamanator)
1 parent 7eabb77 commit 6f11d49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/WorkspaceSwitcherPage/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ function WorkspaceSwitcherPage() {
191191
textInputValue={searchTerm}
192192
onChangeText={setSearchTerm}
193193
headerMessage={headerMessage}
194-
listFooterContent={shouldShowCreateWorkspace ? WorkspaceCardCreateAWorkspaceInstance : null}
194+
listEmptyContent={WorkspaceCardCreateAWorkspaceInstance}
195+
shouldShowListEmptyContent={shouldShowCreateWorkspace}
195196
initiallyFocusedOptionKey={activeWorkspaceID ?? CONST.WORKSPACE_SWITCHER.NAME}
196197
showLoadingPlaceholder={fetchStatus.status === 'loading' || !didScreenTransitionEnd}
197198
/>

0 commit comments

Comments
 (0)