Skip to content

Commit

Permalink
fix(storybook): optional chain includes (#10567)
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #10482
  • Loading branch information
mandarini committed Jun 3, 2022
1 parent 876d4d8 commit a49ee7e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -128,8 +128,8 @@ export function configureTsProjectConfig(
}

if (
!tsConfigContent.exclude.includes('**/*.stories.ts') &&
!tsConfigContent.exclude.includes('**/*.stories.js')
!tsConfigContent?.exclude?.includes('**/*.stories.ts') &&
!tsConfigContent?.exclude?.includes('**/*.stories.js')
) {
tsConfigContent.exclude = [
...(tsConfigContent.exclude || []),
Expand Down

0 comments on commit a49ee7e

Please sign in to comment.