Skip to content

Commit 232cece

Browse files
authored
fix: minor fixes from e2e (#894)
1. Continue button for formsg step not expanding the right substep 2. Redirect URL for connection setup modal missing
1 parent 3a0a569 commit 232cece

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/frontend/src/components/FlowSubstep/index.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ function FlowSubstep(props: FlowSubstepProps): JSX.Element {
135135

136136
const onToggle = expanded ? onCollapse : onExpand
137137

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+
138148
if (!argsToDisplay || argsToDisplay.length === 0) {
139149
return <></>
140150
}

packages/frontend/src/components/InputCreator/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export default function InputCreator(props: InputCreatorProps): JSX.Element {
138138

139139
return (
140140
<TextField
141+
defaultValue={value}
141142
required={required}
142143
placeholder={placeholder}
143144
readOnly={readOnly || disabled}

0 commit comments

Comments
 (0)