diff options
author | 2019-10-04 19:49:46 +0200 | |
---|---|---|
committer | 2019-10-04 19:49:46 +0200 | |
commit | 3495a54951822e2a944e8dec852d0c728e362ab3 (patch) | |
tree | cc0135dc55b094be66700d529853c0441c4346b8 /src/features | |
parent | fix app delay being skipped (diff) | |
download | ferdium-app-3495a54951822e2a944e8dec852d0c728e362ab3.tar.gz ferdium-app-3495a54951822e2a944e8dec852d0c728e362ab3.tar.zst ferdium-app-3495a54951822e2a944e8dec852d0c728e362ab3.zip |
Revert "fix(Workspaces): Only initialize active Workspace services when app is starting"
This reverts commit b521a232ac7c79527d0f3c9baa46695fa5d5e62d, reversing
changes made to 5668a7ad1276a5117bba912a883442961ac54728.
Diffstat (limited to 'src/features')
-rw-r--r-- | src/features/workspaces/store.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index f08323e6c..7f41cfc88 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -141,16 +141,8 @@ export default class WorkspacesStore extends FeatureStore { | |||
141 | 141 | ||
142 | filterServicesByActiveWorkspace = (services) => { | 142 | filterServicesByActiveWorkspace = (services) => { |
143 | const { activeWorkspace, isFeatureActive } = this; | 143 | const { activeWorkspace, isFeatureActive } = this; |
144 | if (isFeatureActive) { | 144 | if (isFeatureActive && activeWorkspace) { |
145 | if (activeWorkspace) { | 145 | return this.getWorkspaceServices(activeWorkspace); |
146 | return this.getWorkspaceServices(activeWorkspace); | ||
147 | } | ||
148 | // There is no active workspace yet but we might be still loading them | ||
149 | if (!getUserWorkspacesRequest.wasExecuted || getUserWorkspacesRequest.isExecutingFirstTime) { | ||
150 | // If so, do not show any services to avoid loading all of them unfiltered | ||
151 | // and then having the filter flashing in (which is ugly and slow). | ||
152 | return []; | ||
153 | } | ||
154 | } | 146 | } |
155 | return services; | 147 | return services; |
156 | }; | 148 | }; |