Skip to content

Commit

Permalink
fix(core): handle undefined target defaults (#18044)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez authored Jul 10, 2023
1 parent a08cb91 commit 92926b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/tasks-runner/create-task-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ export function createTaskGraph(
}

export function mapTargetDefaultsToDependencies(
defaults: TargetDefaults
defaults: TargetDefaults | undefined
): TargetDependencies {
const res = {};
Object.keys(defaults).forEach((k) => {
Object.keys(defaults ?? {}).forEach((k) => {
res[k] = defaults[k].dependsOn;
});

Expand Down

1 comment on commit 92926b9

@vercel
Copy link

@vercel vercel bot commented on 92926b9 Jul 10, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.