Fix issue with stepId being undefined when importing app (#14265)

Co-authored-by: Adria Navarro <adria@budibase.com>
This commit is contained in:
Peter Clement 2024-07-29 14:09:55 +01:00 committed by GitHub
parent 60f7c03e17
commit d29d37b39c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2,12 +2,12 @@ import { Automation, AutomationTriggerStepId } from "@budibase/types"
export function isRowAction(automation: Automation) { export function isRowAction(automation: Automation) {
const result = const result =
automation.definition.trigger.stepId === AutomationTriggerStepId.ROW_ACTION automation.definition.trigger?.stepId === AutomationTriggerStepId.ROW_ACTION
return result return result
} }
export function isAppAction(automation: Automation) { export function isAppAction(automation: Automation) {
const result = const result =
automation.definition.trigger.stepId === AutomationTriggerStepId.APP automation.definition.trigger?.stepId === AutomationTriggerStepId.APP
return result return result
} }