diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-03-26 14:47:06 +0100 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-03-26 14:47:06 +0100 |
commit | 39b4c0a15bd8b58eb41bfdee87b935700bf2875b (patch) | |
tree | 33b748e0513ed6dbb9a5940585fd0d7ffa712708 /src/features/workspaces/store.js | |
parent | hide workspace feature if it is disabled (diff) | |
download | ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.tar.gz ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.tar.zst ferdium-app-39b4c0a15bd8b58eb41bfdee87b935700bf2875b.zip |
handle get workspaces request errors in the ui
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r-- | src/features/workspaces/store.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index 86a8a2c76..3cec5f360 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -30,7 +30,7 @@ export default class WorkspacesStore { | |||
30 | 30 | ||
31 | @computed get workspaces() { | 31 | @computed get workspaces() { |
32 | if (!this.isFeatureActive) return []; | 32 | if (!this.isFeatureActive) return []; |
33 | return getUserWorkspacesRequest.execute().result || []; | 33 | return getUserWorkspacesRequest.result || []; |
34 | } | 34 | } |
35 | 35 | ||
36 | constructor() { | 36 | constructor() { |
@@ -57,6 +57,7 @@ export default class WorkspacesStore { | |||
57 | this.actions = actions; | 57 | this.actions = actions; |
58 | this._reactions.forEach(r => r.start()); | 58 | this._reactions.forEach(r => r.start()); |
59 | this.isFeatureActive = true; | 59 | this.isFeatureActive = true; |
60 | getUserWorkspacesRequest.execute(); | ||
60 | } | 61 | } |
61 | 62 | ||
62 | stop() { | 63 | stop() { |