Skip to content

The open alternative to Salesforce, designed for AI.

fix: workflow run page crash (#14222)

Abdul Rahman3f7f78eef8e7
diff --git a/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts b/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts
index 86cdbe0c753..c56dffffb84 100644
--- a/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts
+++ b/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts
@@ -291,7 +291,7 @@ export const workflowDatabaseEventTriggerSchema = baseTriggerSchema.extend({
eventName: z
.string()
.regex(
- /^[a-z][a-z0-9_]*\.(created|updated|deleted)$/,
+ /^[a-z][a-zA-Z0-9_]*\.(created|updated|deleted)$/,
'Event name must follow the pattern: objectName.action (e.g., "company.created", "person.updated")',
)
.describe(