diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-04 15:59:09 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-04-04 15:59:09 +0200 |
commit | 2243edb4aa8d837332e9727217983ec4fe334b58 (patch) | |
tree | f511941c9ad1c2a7ab107b9adb169533670ab96c /src/features/workspaces/index.js | |
parent | fix wrong workspace tooltip shortcut in sidebar (diff) | |
download | ferdium-app-2243edb4aa8d837332e9727217983ec4fe334b58.tar.gz ferdium-app-2243edb4aa8d837332e9727217983ec4fe334b58.tar.zst ferdium-app-2243edb4aa8d837332e9727217983ec4fe334b58.zip |
fix bug in workspace feature initialization
Diffstat (limited to 'src/features/workspaces/index.js')
-rw-r--r-- | src/features/workspaces/index.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/features/workspaces/index.js b/src/features/workspaces/index.js index 524a83e3c..fb5135743 100644 --- a/src/features/workspaces/index.js +++ b/src/features/workspaces/index.js | |||
@@ -10,15 +10,11 @@ export const workspaceStore = new WorkspacesStore(); | |||
10 | 10 | ||
11 | export default function initWorkspaces(stores, actions) { | 11 | export default function initWorkspaces(stores, actions) { |
12 | stores.workspaces = workspaceStore; | 12 | stores.workspaces = workspaceStore; |
13 | const { features, user } = stores; | 13 | const { features } = stores; |
14 | 14 | ||
15 | // Toggle workspace feature | 15 | // Toggle workspace feature |
16 | reaction( | 16 | reaction( |
17 | () => ( | 17 | () => features.features.isWorkspaceEnabled, |
18 | features.features.isWorkspaceEnabled && ( | ||
19 | !features.features.isWorkspacePremiumFeature || user.data.isPremium | ||
20 | ) | ||
21 | ), | ||
22 | (isEnabled) => { | 18 | (isEnabled) => { |
23 | if (isEnabled && !workspaceStore.isFeatureActive) { | 19 | if (isEnabled && !workspaceStore.isFeatureActive) { |
24 | debug('Initializing `workspaces` feature'); | 20 | debug('Initializing `workspaces` feature'); |