This repository was archived by the owner on Mar 18, 2024. It is now read-only.
File tree 1 file changed +4
-2
lines changed
packages/core/src/package/deploymentCustomizers
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export default class PicklistEnabler implements DeploymentCustomizer {
58
58
if ( ! customField || customField [ 'type' ] !== 'Picklist' || ! customField . valueSet ?. valueSetDefinition ) {
59
59
continue ;
60
60
}
61
+ //no updates for custom metadata picklists
62
+ if ( customField [ 'fieldManageability' ] ) continue ;
61
63
62
64
let objName = fieldComponent . parent . fullName ;
63
65
let picklistName = fieldComponent . name ;
@@ -78,7 +80,7 @@ export default class PicklistEnabler implements DeploymentCustomizer {
78
80
79
81
for ( const value of picklistInOrg . Metadata . valueSet . valueSetDefinition . value ) {
80
82
81
- if ( value . isActive == false ) {
83
+ if ( value . isActive == ' false' ) {
82
84
continue ;
83
85
}
84
86
@@ -115,7 +117,7 @@ export default class PicklistEnabler implements DeploymentCustomizer {
115
117
116
118
let response = await QueryHelper . query < any > ( urlId , conn , true ) ;
117
119
118
- if ( response ) {
120
+ if ( response && Array . isArray ( response ) && response . length > 0 && response [ 0 ] . attributes ) {
119
121
let responseUrl = response [ 0 ] . attributes . url ;
120
122
let fieldId = responseUrl . slice ( responseUrl . lastIndexOf ( '.' ) + 1 ) ;
121
123
let responsePicklist = await conn . tooling . sobject ( 'CustomField' ) . find ( { Id : fieldId } ) ;
You can’t perform that action at this time.
0 commit comments