Fix issue with stepId being undefined when importing app (#14265)
Co-authored-by: Adria Navarro <adria@budibase.com>
This commit is contained in:
parent
60f7c03e17
commit
d29d37b39c
|
@ -2,12 +2,12 @@ import { Automation, AutomationTriggerStepId } from "@budibase/types"
|
|||
|
||||
export function isRowAction(automation: Automation) {
|
||||
const result =
|
||||
automation.definition.trigger.stepId === AutomationTriggerStepId.ROW_ACTION
|
||||
automation.definition.trigger?.stepId === AutomationTriggerStepId.ROW_ACTION
|
||||
return result
|
||||
}
|
||||
|
||||
export function isAppAction(automation: Automation) {
|
||||
const result =
|
||||
automation.definition.trigger.stepId === AutomationTriggerStepId.APP
|
||||
automation.definition.trigger?.stepId === AutomationTriggerStepId.APP
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue