aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/store.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-09-16 12:46:13 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-09-16 12:46:13 +0200
commitbf676f8597e5539c047f42a5716022681e3419c3 (patch)
treec5795bbc48951fdf643838eaa8f3294dff13dba4 /src/features/workspaces/store.js
parentAdd information about NodeJS version in dev (diff)
downloadferdium-app-bf676f8597e5539c047f42a5716022681e3419c3.tar.gz
ferdium-app-bf676f8597e5539c047f42a5716022681e3419c3.tar.zst
ferdium-app-bf676f8597e5539c047f42a5716022681e3419c3.zip
Implement #37
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r--src/features/workspaces/store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index da1582a77..949f8a792 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -17,6 +17,8 @@ import { WORKSPACES_ROUTES } from './index';
17import { createReactions } from '../../stores/lib/Reaction'; 17import { createReactions } from '../../stores/lib/Reaction';
18import { createActionBindings } from '../utils/ActionBinding'; 18import { createActionBindings } from '../utils/ActionBinding';
19 19
20import { KEEP_WS_LOADED_USID } from '../../config';
21
20const debug = require('debug')('Ferdi:feature:workspaces:store'); 22const debug = require('debug')('Ferdi:feature:workspaces:store');
21 23
22export default class WorkspacesStore extends FeatureStore { 24export default class WorkspacesStore extends FeatureStore {
@@ -327,7 +329,7 @@ export default class WorkspacesStore extends FeatureStore {
327 // Loop through all workspaces and remove invalid service ids (locally) 329 // Loop through all workspaces and remove invalid service ids (locally)
328 this.workspaces.forEach((workspace) => { 330 this.workspaces.forEach((workspace) => {
329 workspace.services.forEach((serviceId) => { 331 workspace.services.forEach((serviceId) => {
330 if (servicesHaveBeenLoaded && !services.one(serviceId)) { 332 if (servicesHaveBeenLoaded && !services.one(serviceId) && serviceId !== KEEP_WS_LOADED_USID) {
331 workspace.services.remove(serviceId); 333 workspace.services.remove(serviceId);
332 } 334 }
333 }); 335 });