Skip to content

Commit 4e0efcb

Browse files
committed
chore: close test result collapse on edit
1 parent 9b2db1f commit 4e0efcb

File tree

1 file changed

+2
-1
lines changed
  • packages/frontend/src/components/FlowSubstep

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ function FlowSubstep(props: FlowSubstepProps): JSX.Element {
4949
const { dirtyFields } = formContext.formState
5050
const isDirty = Object.keys(dirtyFields).length > 0
5151
useEffect(() => {
52+
onTestResultClose()
5253
setShouldWarnOnLeave(isDirty)
53-
}, [isDirty, setShouldWarnOnLeave])
54+
}, [isDirty, onTestResultClose, setShouldWarnOnLeave])
5455

5556
// filter inputs hidden behind feature flags based on timestamp
5657
const argsToDisplay = useMemo(

0 commit comments

Comments
 (0)