From 1917202140b01ace72ca9523f9cd631bcef924b8 Mon Sep 17 00:00:00 2001 From: mshanemc Date: Wed, 3 Jan 2024 10:51:43 -0600 Subject: [PATCH] fix: return the promise array --- src/commands/project/delete/source.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/project/delete/source.ts b/src/commands/project/delete/source.ts index a90bc092..dc99f7a4 100644 --- a/src/commands/project/delete/source.ts +++ b/src/commands/project/delete/source.ts @@ -214,14 +214,14 @@ export class Source extends SfCommand { this.components .filter((comp) => comp.type.strategies?.adapter === 'bundle') .filter(isSourceComponent) - .map((bundle: SourceComponent) => { + .flatMap((bundle: SourceComponent) => sourcepaths.map((sourcepath) => // walkContent returns absolute paths while sourcepath will usually be relative bundle.walkContent().some((content) => content.endsWith(sourcepath)) ? this.moveBundleToManifest(bundle, sourcepath) - : undefined - ); - }) + : [] + ) + ) ); }