Skip to content

The open alternative to Salesforce, designed for AI.

Fix Global workflows not pinned (#16728)

Charles Bochet9c49f4ba8298
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowRecordAgnosticActions.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowRecordAgnosticActions.tsx
index 87c78bf7c18..b4945f96d9d 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowRecordAgnosticActions.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/run-workflow-actions/hooks/useRunWorkflowRecordAgnosticActions.tsx
@@ -41,7 +41,9 @@ export const useRunWorkflowRecordAgnosticActions = () => {
key: `workflow-run-${activeWorkflowVersion.id}`,
scope: ActionScope.Global,
label: name,
+ shortLabel: name,
position: index,
+ isPinned: activeWorkflowVersion.trigger?.settings?.isPinned,
Icon,
shouldBeRegistered: () => true,
component: (