From 3495a54951822e2a944e8dec852d0c728e362ab3 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 4 Oct 2019 19:49:46 +0200 Subject: Revert "fix(Workspaces): Only initialize active Workspace services when app is starting" This reverts commit b521a232ac7c79527d0f3c9baa46695fa5d5e62d, reversing changes made to 5668a7ad1276a5117bba912a883442961ac54728. --- src/features/workspaces/store.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/features/workspaces/store.js') 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 { filterServicesByActiveWorkspace = (services) => { const { activeWorkspace, isFeatureActive } = this; - if (isFeatureActive) { - if (activeWorkspace) { - return this.getWorkspaceServices(activeWorkspace); - } - // There is no active workspace yet but we might be still loading them - if (!getUserWorkspacesRequest.wasExecuted || getUserWorkspacesRequest.isExecutingFirstTime) { - // If so, do not show any services to avoid loading all of them unfiltered - // and then having the filter flashing in (which is ugly and slow). - return []; - } + if (isFeatureActive && activeWorkspace) { + return this.getWorkspaceServices(activeWorkspace); } return services; }; -- cgit v1.2.3-54-g00ecf