Fix the periodic service form's hour/minute values being reset. (#4943)

This commit is contained in:
Peter Evans authored and GitHub committed 2026-03-09 16:22:03 +00:00
1 parent 92c9eb8206
commit 8dc8ded9be
2 files changed
+15

No files matched your search

@@ -0,0 +1,9 @@
{
"type": "bug",
"message": "Resolved an issue which prevented hour and minute values from persisting in the periodic trigger form.",
"issue_origin": "github",
"issue_number": null,
"domain": "automation",
"bullet_points": [],
"created_at": "2026-03-09"
}
@@ -311,6 +311,12 @@ export default {
}
},
syncValuesFromUser() {
if (!this.syncedFromValues) {
// This function could have been called before the initial sync from `values`
// to `user` in mounted() has completed. In that case, we don't want to run
// this logic yet since `user` won't have the correct values yet.
return
}
this.v$.$touch()
if (this.v$.values.interval.$invalid) return
if (this.showMinuteFrequencyField && this.v$.user.minute.$invalid) return