We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0a569 commit 90d2346Copy full SHA for 90d2346
packages/frontend/src/components/FlowSubstep/index.tsx
@@ -135,6 +135,16 @@ function FlowSubstep(props: FlowSubstepProps): JSX.Element {
135
136
const onToggle = expanded ? onCollapse : onExpand
137
138
+ // Skip to the next step if the substep is meant to be hidden
139
+ useEffect(() => {
140
+ if (!expanded) {
141
+ return
142
+ }
143
+ if (!argsToDisplay || argsToDisplay.length === 0) {
144
+ onSubmit()
145
146
+ }, [argsToDisplay, expanded, onSubmit])
147
+
148
if (!argsToDisplay || argsToDisplay.length === 0) {
149
return <></>
150
}
0 commit comments