feat: simplification of default-value specification in FieldMetadata (#4592)
* feat: wip refactor default-value * feat: health check to migrate default value * fix: tests * fix: refactor defaultValue to make it more clean * fix: unit tests * fix: front-end default value
This commit is contained in:
@ -63,7 +63,7 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
|
||||
label: 'Probability',
|
||||
description: 'Opportunity probability',
|
||||
icon: 'IconProgressCheck',
|
||||
defaultValue: { value: '0' },
|
||||
defaultValue: "'0'",
|
||||
})
|
||||
probability: string;
|
||||
|
||||
@ -85,7 +85,7 @@ export class OpportunityObjectMetadata extends BaseObjectMetadata {
|
||||
},
|
||||
{ value: 'CUSTOMER', label: 'Customer', position: 4, color: 'yellow' },
|
||||
],
|
||||
defaultValue: { value: 'NEW' },
|
||||
defaultValue: "'NEW'",
|
||||
})
|
||||
stage: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user