The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Move run creation before opening side panel (#16956)
Thomas Trompette48b0e2f11d9d
diff --git a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsxindex babb35fe827..24c5dc89ade 100644--- a/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx+++ b/packages/twenty-front/src/modules/workflow/hooks/useRunWorkflowVersion.tsx@@ -135,14 +135,14 @@ export const useRunWorkflowVersion = () => {setRecordInStore(recordCreatedInCache);+ await mutate({+ variables: { input: { workflowVersionId, workflowRunId, payload } },+ });+openRecordInCommandMenu({objectNameSingular: CoreObjectNameSingular.WorkflowRun,recordId: workflowRunId,});-- await mutate({- variables: { input: { workflowVersionId, workflowRunId, payload } },- });};return { runWorkflowVersion };