From 3f7f78eef8e7bbd77dd39bdba996cba104330745 Mon Sep 17 00:00:00 2001 From: Abdul Rahman <81605929+abdulrahmancodes@users.noreply.github.com> Date: Mon, 1 Sep 2025 21:59:29 +0530 Subject: [PATCH] fix: workflow run page crash (#14222) Closes [#292](https://github.com/twentyhq/private-issues/issues/292) Before: https://github.com/user-attachments/assets/848df76f-c2fb-46c8-b70a-4ec990f2917c After: https://github.com/user-attachments/assets/60aa83b0-84ab-477c-ad79-b88a43ad7fa8 --- packages/twenty-shared/src/workflow/schemas/workflow.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts b/packages/twenty-shared/src/workflow/schemas/workflow.schema.ts index 86cdbe0c75..c56dffffb8 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(