Skip to content

Commit

Permalink
[dagit] Use Array flat (#7754)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellendag committed May 5, 2022
1 parent 9beeff4 commit 2930507
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,15 @@ export const LaunchAssetExecutionButton: React.FC<{
tags: [
{
key: DagsterTag.StepSelection,
value: ([] as string[]).concat
.apply(
[],
assets.map((o) => o.opNames),
)
value: assets
.map((o) => o.opNames)
.flat()
.join(','),
},
],
},
runConfigData: {},
stepKeys: ([] as string[]).concat.apply(
[],
assets.map((o) => o.opNames),
),
stepKeys: assets.map((o) => o.opNames).flat(),
selector: {
repositoryLocationName: repoAddress.location,
repositoryName: repoAddress.name,
Expand Down

0 comments on commit 2930507

Please sign in to comment.