From 36b14e602946cf067c6aa75ebc2b2f0a452bc821 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Thu, 19 Dec 2024 18:53:48 -0300 Subject: [PATCH] DEV: added a .? to properly handle the default value of the fields in the automation --- .../javascripts/admin/components/fields/da-base-field.gjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/automation/admin/assets/javascripts/admin/components/fields/da-base-field.gjs b/plugins/automation/admin/assets/javascripts/admin/components/fields/da-base-field.gjs index 9e6dcb4f01c..b15c381fbfd 100644 --- a/plugins/automation/admin/assets/javascripts/admin/components/fields/da-base-field.gjs +++ b/plugins/automation/admin/assets/javascripts/admin/components/fields/da-base-field.gjs @@ -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;