mirror of
				https://github.com/lingble/twenty.git
				synced 2025-11-03 22:27:57 +00:00 
			
		
		
		
	Set initial step if only one root step (#8617)
This commit is contained in:
		@@ -43,9 +43,14 @@ const SearchVariablesDropdown = ({
 | 
			
		||||
  const availableVariablesInWorkflowStep =
 | 
			
		||||
    useAvailableVariablesInWorkflowStep();
 | 
			
		||||
 | 
			
		||||
  const initialStep =
 | 
			
		||||
    availableVariablesInWorkflowStep.length === 1
 | 
			
		||||
      ? availableVariablesInWorkflowStep[0]
 | 
			
		||||
      : undefined;
 | 
			
		||||
 | 
			
		||||
  const [selectedStep, setSelectedStep] = useState<
 | 
			
		||||
    StepOutputSchema | undefined
 | 
			
		||||
  >(undefined);
 | 
			
		||||
  >(initialStep);
 | 
			
		||||
 | 
			
		||||
  const insertVariableTag = (variable: string) => {
 | 
			
		||||
    editor.commands.insertVariableTag(variable);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user