Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return the promise array #865

Merged
merged 1 commit into from
Jan 3, 2024
Merged

fix: return the promise array #865

merged 1 commit into from
Jan 3, 2024

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Jan 3, 2024

@@ -214,14 +214,14 @@ export class Source extends SfCommand<DeleteSourceJson> {
this.components
.filter((comp) => comp.type.strategies?.adapter === 'bundle')
.filter(isSourceComponent)
.map((bundle: SourceComponent) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the curly bracket here causes the stuff inside to execute, but it should have returned the result.

: undefined
);
})
: []
Copy link
Contributor Author

@mshanemc mshanemc Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty arrays get removed during flattening

@shetzel shetzel merged commit a95cf96 into main Jan 3, 2024
40 checks passed
@shetzel shetzel deleted the sm/floating-promises-take-2 branch January 3, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants