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.
This commit is contained in:
Raphaël Bosi
2025-06-13 12:10:34 +02:00
committed by GitHub
parent 5fed618528
commit e9733ea33a
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ export const useRunWorkflowRecordActions = ({
payload: selectedRecord,
});
}}
closeSidePanelOnCommandMenuListActionExecution={false}
/>
),
};

View File

@ -54,6 +54,7 @@ export const useRunWorkflowRecordAgnosticActions = () => {
workflowVersionId: activeWorkflowVersion.id,
});
}}
closeSidePanelOnCommandMenuListActionExecution={false}
/>
),
};