From 95df3522a15631abc51a4295cae0ea401a8d4e1e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 14 Sep 2021 19:58:52 +0200 Subject: feat: add eslint-plugin-unicorn (#1936) --- src/features/workspaces/store.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/features/workspaces/store.js') diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index ec9d7ee7f..73e882990 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js @@ -302,8 +302,8 @@ export default class WorkspacesStore extends FeatureStore { const { allServicesRequest } = services; const servicesHaveBeenLoaded = allServicesRequest.wasExecuted && !allServicesRequest.isError; // Loop through all workspaces and remove invalid service ids (locally) - this.workspaces.forEach((workspace) => { - workspace.services.forEach((serviceId) => { + for (const workspace of this.workspaces) { + for (const serviceId of workspace.services) { if ( servicesHaveBeenLoaded && !services.one(serviceId) @@ -311,7 +311,7 @@ export default class WorkspacesStore extends FeatureStore { ) { workspace.services.remove(serviceId); } - }); - }); + } + } }; } -- cgit v1.2.3-54-g00ecf