mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
Set initial step if only one root step (#8617)
This commit is contained in:
parent
ffbc9ca59c
commit
eb66c019f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user