From 9e7f01a0094896f0cb0435fb2284ecde0d901e39 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 6 Aug 2024 11:39:52 +0200 Subject: [PATCH] Only migrate automation actions if there are any (#21599) --- src/data/automation.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/automation.ts b/src/data/automation.ts index 59cf4bacfe..7f9fb7000b 100644 --- a/src/data/automation.ts +++ b/src/data/automation.ts @@ -366,7 +366,9 @@ export const normalizeAutomationConfig = < } } - config.action = migrateAutomationAction(config.action || []); + if (config.action) { + config.action = migrateAutomationAction(config.action); + } return config; };