diff options
Diffstat (limited to 'src/features/workspaces/store.js')
-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 b83fe335a..13227e033 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -146,16 +146,8 @@ export default class WorkspacesStore extends FeatureStore { | |||
146 | 146 | ||
147 | filterServicesByActiveWorkspace = (services) => { | 147 | filterServicesByActiveWorkspace = (services) => { |
148 | const { activeWorkspace, isFeatureActive } = this; | 148 | const { activeWorkspace, isFeatureActive } = this; |
149 | if (isFeatureActive) { | 149 | if (isFeatureActive && activeWorkspace) { |
150 | if (activeWorkspace) { | 150 | return this.getWorkspaceServices(activeWorkspace); |
151 | return this.getWorkspaceServices(activeWorkspace); | ||
152 | } | ||
153 | // There is no active workspace yet but we might be still loading them | ||
154 | if (!getUserWorkspacesRequest.wasExecuted || getUserWorkspacesRequest.isExecutingFirstTime) { | ||
155 | // If so, do not show any services to avoid loading all of them unfiltered | ||
156 | // and then having the filter flashing in (which is ugly and slow). | ||
157 | return []; | ||
158 | } | ||
159 | } | 151 | } |
160 | return services; | 152 | return services; |
161 | }; | 153 | }; |