diff --git a/packages/server/src/automations/steps/collect.ts b/packages/server/src/automations/steps/collect.ts index 3ceadcb714..1107c68c32 100644 --- a/packages/server/src/automations/steps/collect.ts +++ b/packages/server/src/automations/steps/collect.ts @@ -45,8 +45,14 @@ export const definition: AutomationStepSchema = { } export async function run({ inputs }: AutomationStepInput) { - return { - success: true, - value: inputs.collection, + if (!inputs.collection) { + return { + success: false, + } + } else { + return { + success: true, + value: inputs.collection, + } } }