Skip to content

Commit

Permalink
migrate nested triggers too (#22135)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Sep 27, 2024
1 parent 7a60763 commit fef6f0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ export const migrateAutomationTrigger = (
return trigger.map(migrateAutomationTrigger) as Trigger[];
}

if ("triggers" in trigger && trigger.triggers) {
trigger.triggers = migrateAutomationTrigger(trigger.triggers);
}

if ("platform" in trigger) {
if (!("trigger" in trigger)) {
// @ts-ignore
Expand Down

0 comments on commit fef6f0a

Please sign in to comment.