Skip to content

The open alternative to Salesforce, designed for AI.

Reset selectedStep with proper step (#9867)

martmull7362558e304c
diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx
index 6e6884ed933..9a4aba81b9e 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/components/WorkflowVariablesDropdown.tsx
@@ -64,7 +64,7 @@ export const WorkflowVariablesDropdown = ({
const handleSubItemSelect = (subItem: string) => {
onVariableSelect(subItem);
- setSelectedStep(undefined);
+ setSelectedStep(initialStep);
closeDropdown();
};