diff --git a/packages/shared-core/src/sdk/documents/automations.ts b/packages/shared-core/src/sdk/documents/automations.ts index 3663f7ae46..86cbee75f7 100644 --- a/packages/shared-core/src/sdk/documents/automations.ts +++ b/packages/shared-core/src/sdk/documents/automations.ts @@ -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 }