Skip to content

Commit

Permalink
fix(storybook): dont fail if targets dont exist (#18745)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0448317)
  • Loading branch information
mandarini authored and FrozenPandaz committed Aug 21, 2023
1 parent 2835cb3 commit 8e6dcd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export function updateLintConfig(tree: Tree, schema: StorybookConfigureSchema) {
const { name: projectName } = schema;

const { targets, root } = readProjectConfiguration(tree, projectName);
const tslintTargets = Object.values(targets).filter(
const tslintTargets = Object.values(targets ?? {}).filter(
(target) => target.executor === '@angular-devkit/build-angular:tslint'
);

Expand Down

0 comments on commit 8e6dcd2

Please sign in to comment.