Null pointer fix

This commit is contained in:
Mel O'Hagan 2022-11-10 15:22:05 +00:00
parent 92fed8030c
commit 531e30fa3d
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {