chore: add comments

This commit is contained in:
Shivam Mishra
2024-07-23 17:19:11 +05:30
parent 8626590386
commit 6bd1fe1c10
@@ -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);