From ed2400eb99d7c2f73635b262ae1e96876e96ed0b Mon Sep 17 00:00:00 2001 From: Tako Schotanus Date: Fri, 16 Aug 2019 21:33:01 +0200 Subject: [PATCH] fix: now really disable welcome app when disabled by user fixes: #960 --- .../src/flows/launcher-client-adapters.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/packages/launcher-app/src/flows/launcher-client-adapters.ts b/frontend/packages/launcher-app/src/flows/launcher-client-adapters.ts index 8283f79b3..1acf44813 100644 --- a/frontend/packages/launcher-app/src/flows/launcher-client-adapters.ts +++ b/frontend/packages/launcher-app/src/flows/launcher-client-adapters.ts @@ -45,12 +45,12 @@ export function buildDownloadNewAppPayload(app: NewApp) { } if (parts.length > 1) { - parts = [ - ...parts.map(p => ({...p, subFolderName: p.category})), - {category: 'support', subFolderName: 'support', capabilities: [ - app.welcomeApp.selected ? { module: 'capability-welcome' } : {} - ]} - ]; + parts = [...parts.map(p => ({...p, subFolderName: p.category}))]; + if (app.welcomeApp.selected) { + parts.push({category: 'support', subFolderName: 'support', capabilities: [ + { module: 'capability-welcome' } + ]}); + } } else if (app.welcomeApp.selected) { parts[0].capabilities.push({module: 'capability-welcome'}); }