DEV: added a .? to properly handle the default value of the fields in the automation

This commit is contained in:
Gabriel Grubba 2024-12-19 18:53:48 -03:00
parent 74ccc12462
commit 36b14e6029
No known key found for this signature in database
GPG Key ID: 5FE41764F62D556C
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export default class BaseField extends Component {
super(...arguments);
if (
this.args.field.extra &&
this.args.field?.extra &&
Object.keys(this.args.field.extra).includes("default_value")
) {
this.args.field.metadata.value = this.args.field.extra.default_value;