Skip to content

Commit

Permalink
chore(core): format condition checking multiple targets
Browse files Browse the repository at this point in the history
  • Loading branch information
yharaskrik committed Aug 5, 2023
1 parent cb16b2e commit 149627c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/show/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function showProjectsHandler(

if (args.withTarget) {
graph.nodes = Object.entries(graph.nodes).reduce((acc, [name, node]) => {
if (args.withTarget.some(target => node.data.targets?.[target])) {
if (args.withTarget.some((target) => node.data.targets?.[target])) {
acc[name] = node;
}
return acc;
Expand Down

0 comments on commit 149627c

Please sign in to comment.