diff options
author | 2021-12-18 20:04:17 +0100 | |
---|---|---|
committer | 2021-12-18 20:04:17 +0100 | |
commit | 28bea416037709a65db4e04ec806781058a7f479 (patch) | |
tree | 32ba85a1972cee0740fb85cf4f397f97b7e7a817 /src/features/workspaces/components | |
parent | Fix prop title is marked as required in FullscreenLoader (diff) | |
download | ferdium-app-28bea416037709a65db4e04ec806781058a7f479.tar.gz ferdium-app-28bea416037709a65db4e04ec806781058a7f479.tar.zst ferdium-app-28bea416037709a65db4e04ec806781058a7f479.zip |
Fetch workspaces on WorkspaceDrawer componentDidMount
Diffstat (limited to 'src/features/workspaces/components')
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index 4fd2b1153..be546cae0 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js | |||
@@ -12,6 +12,9 @@ import { Icon } from '../../../components/ui/icon'; | |||
12 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; | 12 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; |
13 | import { workspaceActions } from '../actions'; | 13 | import { workspaceActions } from '../actions'; |
14 | import { workspaceStore } from '../index'; | 14 | import { workspaceStore } from '../index'; |
15 | import { | ||
16 | getUserWorkspacesRequest, | ||
17 | } from '../api'; | ||
15 | 18 | ||
16 | const messages = defineMessages({ | 19 | const messages = defineMessages({ |
17 | headline: { | 20 | headline: { |
@@ -96,6 +99,7 @@ class WorkspaceDrawer extends Component { | |||
96 | 99 | ||
97 | componentDidMount() { | 100 | componentDidMount() { |
98 | ReactTooltip.rebuild(); | 101 | ReactTooltip.rebuild(); |
102 | getUserWorkspacesRequest.execute(); | ||
99 | } | 103 | } |
100 | 104 | ||
101 | render() { | 105 | render() { |