diff --git a/app/javascript/dashboard/mixins/automations/methodsMixin.js b/app/javascript/dashboard/mixins/automations/methodsMixin.js index ee19f1704..1e9863283 100644 --- a/app/javascript/dashboard/mixins/automations/methodsMixin.js +++ b/app/javascript/dashboard/mixins/automations/methodsMixin.js @@ -154,6 +154,8 @@ export default { } }, submitAutomation() { + // we assign it to this.errors so that it can be accessed in the template + // it is supposed to be declared in the data function this.errors = validateAutomation(this.automation); if (Object.keys(this.errors).length === 0) { const automation = generateAutomationPayload(this.automation);