aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/components/WorkspaceDrawer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/workspaces/components/WorkspaceDrawer.js')
-rw-r--r--src/features/workspaces/components/WorkspaceDrawer.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js
index 27bf08361..c9c4d3bc9 100644
--- a/src/features/workspaces/components/WorkspaceDrawer.js
+++ b/src/features/workspaces/components/WorkspaceDrawer.js
@@ -54,7 +54,8 @@ class WorkspaceDrawer extends Component {
54 getServicesForWorkspace, 54 getServicesForWorkspace,
55 } = this.props; 55 } = this.props;
56 const { intl } = this.context; 56 const { intl } = this.context;
57 57 const { activeWorkspace, isSwitchingWorkspace, nextWorkspace } = workspacesState;
58 const actualWorkspace = isSwitchingWorkspace ? nextWorkspace : activeWorkspace;
58 return ( 59 return (
59 <div className={classes.drawer}> 60 <div className={classes.drawer}>
60 <H1 className={classes.headline}> 61 <H1 className={classes.headline}>
@@ -74,13 +75,13 @@ class WorkspaceDrawer extends Component {
74 name={intl.formatMessage(messages.allServices)} 75 name={intl.formatMessage(messages.allServices)}
75 onClick={() => workspaceActions.deactivate()} 76 onClick={() => workspaceActions.deactivate()}
76 services={getServicesForWorkspace(null)} 77 services={getServicesForWorkspace(null)}
77 isActive={workspacesState.activeWorkspace == null} 78 isActive={actualWorkspace == null}
78 /> 79 />
79 {workspacesState.workspaces.map(workspace => ( 80 {workspacesState.workspaces.map(workspace => (
80 <WorkspaceDrawerItem 81 <WorkspaceDrawerItem
81 key={workspace.id} 82 key={workspace.id}
82 name={workspace.name} 83 name={workspace.name}
83 isActive={workspacesState.activeWorkspace === workspace} 84 isActive={actualWorkspace === workspace}
84 onClick={() => workspaceActions.activate({ workspace })} 85 onClick={() => workspaceActions.activate({ workspace })}
85 services={getServicesForWorkspace(workspace)} 86 services={getServicesForWorkspace(workspace)}
86 /> 87 />