From 4d62bffc97d559a361500d7407beb53576ce0983 Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Sat, 2 Mar 2024 17:23:19 +1100 Subject: [PATCH] fix(release): add additonal null check --- packages/sfp-cli/src/impl/release/ReleaseImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sfp-cli/src/impl/release/ReleaseImpl.ts b/packages/sfp-cli/src/impl/release/ReleaseImpl.ts index 14c204c39..0d887a2bb 100644 --- a/packages/sfp-cli/src/impl/release/ReleaseImpl.ts +++ b/packages/sfp-cli/src/impl/release/ReleaseImpl.ts @@ -109,7 +109,7 @@ export default class ReleaseImpl { releaseName = succededDeployment.releaseDefinition.release; let releaseDefinition = succededDeployment.releaseDefinition; if (releaseDefinition.changelog) { - if (releaseDefinition.changelog.workItemFilters) { + if (releaseDefinition.changelog?.workItemFilters) { workitemFilters.push(...releaseDefinition.changelog?.workItemFilters); } if (releaseDefinition.changelog.limit > limit) limit = releaseDefinition.changelog.limit;