Merge pull request #8635 from Budibase/bug/sev3/app-import-automations
App import automations - null pointer fix
This commit is contained in:
commit
c7b19a9cec
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ async function updateAutomations(prodAppId: string, db: PouchDB.Database) {
|
||||||
const oldDevAppId = automation.appId,
|
const oldDevAppId = automation.appId,
|
||||||
oldProdAppId = dbCore.getProdAppID(automation.appId)
|
oldProdAppId = dbCore.getProdAppID(automation.appId)
|
||||||
if (
|
if (
|
||||||
automation.definition.trigger.stepId === AutomationTriggerStepId.WEBHOOK
|
automation.definition.trigger?.stepId === AutomationTriggerStepId.WEBHOOK
|
||||||
) {
|
) {
|
||||||
const old = automation.definition.trigger.inputs
|
const old = automation.definition.trigger.inputs
|
||||||
automation.definition.trigger.inputs = {
|
automation.definition.trigger.inputs = {
|
||||||
|
|
Loading…
Reference in a new issue