Skip to content

Commit

Permalink
fix(core): do not create empty graph when it is not cached (#17139)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez authored May 23, 2023
1 parent eeec109 commit 25328b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ function copyFileMap(m: ProjectFileMap) {
return c;
}

function copyProjectGraph(p: ProjectGraph): ProjectGraph {
return { ...p };
function copyProjectGraph(p: ProjectGraph | null): ProjectGraph | null {
return p ? { ...p } : null;
}

async function createAndSerializeProjectGraph(): Promise<{
Expand Down

1 comment on commit 25328b3

@vercel
Copy link

@vercel vercel bot commented on 25328b3 May 23, 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.