From f4b4416ea52d564bc2dbe543a82084ed98843ccc Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 30 Jul 2021 10:54:54 +0200 Subject: chore: migrate from tslint to @typescript-eslint (#1706) - update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A --- src/features/workspaces/models/Workspace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/features/workspaces/models') diff --git a/src/features/workspaces/models/Workspace.js b/src/features/workspaces/models/Workspace.js index 77c4e05f4..11ee377cd 100644 --- a/src/features/workspaces/models/Workspace.js +++ b/src/features/workspaces/models/Workspace.js @@ -22,13 +22,13 @@ export default class Workspace { this.name = data.name; this.order = data.order; - let services = data.services; + let { services } = data; if (data.saving && data.keepLoaded) { // Keep workspaces loaded services.push(KEEP_WS_LOADED_USID); } else if (data.saving && data.services.includes(KEEP_WS_LOADED_USID)) { // Don't keep loaded - services = services.filter(e => e !== KEEP_WS_LOADED_USID); + services = services.filter((e) => e !== KEEP_WS_LOADED_USID); } this.services.replace(services); -- cgit v1.2.3-54-g00ecf