Null pointer fix
This commit is contained in:
parent
bda2310760
commit
6d1449431e
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue