From 6bd1fe1c10495766c89897e763fccfa74df85499 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 23 Jul 2024 17:19:11 +0530 Subject: [PATCH] chore: add comments --- app/javascript/dashboard/mixins/automations/methodsMixin.js | 2 ++ 1 file changed, 2 insertions(+) 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);