From 531e30fa3dec7fd2951aea0a53bc9cb96e500457 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 10 Nov 2022 15:22:05 +0000 Subject: [PATCH] Null pointer fix --- packages/server/src/sdk/app/backups/imports.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/backups/imports.ts b/packages/server/src/sdk/app/backups/imports.ts index 7cc9e0b0e6..6332716710 100644 --- a/packages/server/src/sdk/app/backups/imports.ts +++ b/packages/server/src/sdk/app/backups/imports.ts @@ -100,7 +100,7 @@ async function updateAutomations(prodAppId: string, db: PouchDB.Database) { const oldDevAppId = automation.appId, oldProdAppId = dbCore.getProdAppID(automation.appId) if ( - automation.definition.trigger.stepId === AutomationTriggerStepId.WEBHOOK + automation.definition.trigger?.stepId === AutomationTriggerStepId.WEBHOOK ) { const old = automation.definition.trigger.inputs automation.definition.trigger.inputs = {