From b26566c6e3d95f6c8d3078fe9fa7e0b92d1b182d Mon Sep 17 00:00:00 2001 From: azlam Date: Fri, 13 Oct 2023 14:26:19 +1100 Subject: [PATCH] fix(picklist): fix incorrect check for picklist if missing in org fixes the incorrect conditional when a picklist is not available in org fixes #1414 --- .../core/src/package/deploymentCustomizers/PicklistEnabler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/package/deploymentCustomizers/PicklistEnabler.ts b/packages/core/src/package/deploymentCustomizers/PicklistEnabler.ts index 3a5941616..922d0a71e 100644 --- a/packages/core/src/package/deploymentCustomizers/PicklistEnabler.ts +++ b/packages/core/src/package/deploymentCustomizers/PicklistEnabler.ts @@ -75,7 +75,7 @@ export default class PicklistEnabler implements DeploymentCustomizer { let picklistInOrg = await this.getPicklistInOrg(urlId, sfpOrg.getConnection()); //check for empty picklists on org and fix first deployment issue - if (!picklistInOrg && picklistInOrg?.Metadata?.valueSetc?.valueSetDefinition) continue; + if (!picklistInOrg && picklistInOrg?.Metadata?.valueSet?.valueSetDefinition) continue; let picklistValueInOrg = [];