Skip to content

Commit

Permalink
fix(linter): make target default migrations a bit more robust (#21446)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Jan 30, 2024
1 parent 3b81534 commit d44e7de
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ export default async function update(tree: Tree) {
}

// remove options if empty
if (Object.keys(projConfig.targets[targetName].options).length === 0) {
if (
Object.keys(projConfig.targets[targetName]?.options ?? {}).length === 0
) {
delete projConfig.targets[targetName].options;
}

Expand Down

0 comments on commit d44e7de

Please sign in to comment.