From e9733ea33a40982e626f0afc3ecd0dd986f8a36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Fri, 13 Jun 2025 12:10:34 +0200 Subject: [PATCH] Fix side panel closing after workflow execution (#12590) We introduced a new behavior after a workflow execution where the workflow run would be opened inside the side panel. But we didn't prevent the side panel form closing. This caused a race condition between the side panel closing and the reopening where sometimes the closing would fire after the reopening. **Fix**: Since we now always want to open the side panel after the execution, I added `closeSidePanelOnCommandMenuListActionExecution={false}` for workflow actions. --- .../run-workflow-actions/hooks/useRunWorkflowRecordActions.tsx | 1 + .../hooks/useRunWorkflowRecordAgnosticActions.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/run-workflow-actions/hooks/useRunWorkflowRecordActions.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/run-workflow-actions/hooks/useRunWorkflowRecordActions.tsx index 400a28be5..8b0ddcbd5 100644 --- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/run-workflow-actions/hooks/useRunWorkflowRecordActions.tsx +++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/run-workflow-actions/hooks/useRunWorkflowRecordActions.tsx @@ -68,6 +68,7 @@ export const useRunWorkflowRecordActions = ({ payload: selectedRecord, }); }} + closeSidePanelOnCommandMenuListActionExecution={false} /> ), }; 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 83a3cd5f3..cd9486417 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 @@ -54,6 +54,7 @@ export const useRunWorkflowRecordAgnosticActions = () => { workflowVersionId: activeWorkflowVersion.id, }); }} + closeSidePanelOnCommandMenuListActionExecution={false} /> ), };