Skip to content

Commit

Permalink
fix: return the promise array
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jan 3, 2024
1 parent 817785b commit 1917202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/project/delete/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ export class Source extends SfCommand<DeleteSourceJson> {
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
);
})
: []
)
)
);
}

Expand Down

0 comments on commit 1917202

Please sign in to comment.