From 4061bbfc2ba210ce5459387fd69063b76fd55c45 Mon Sep 17 00:00:00 2001 From: Paul Sealock Date: Thu, 15 Feb 2024 04:04:56 +1300 Subject: [PATCH] Changelog Auto Add script: Fix property chaining (#44570) Fix property chaining --- tools/monorepo-utils/src/changefile/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/monorepo-utils/src/changefile/index.ts b/tools/monorepo-utils/src/changefile/index.ts index 9b53fd763ce..c851a87b5d2 100644 --- a/tools/monorepo-utils/src/changefile/index.ts +++ b/tools/monorepo-utils/src/changefile/index.ts @@ -135,7 +135,7 @@ const program = new Command( 'changefile' ) const changelogFilePath = nodePath.join( tmpRepoPath, projectPath, - composerFile.extra?.changelogger[ 'changes-dir' ] ?? + composerFile.extra?.changelogger?.[ 'changes-dir' ] ?? 'changelog', fileName );