DEV: added a .? to properly handle the default value of the fields in the automation
This commit is contained in:
parent
74ccc12462
commit
36b14e6029
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue