File tree 1 file changed +4
-4
lines changed
app/src/pages/ODD/RunSummary
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ export function RunSummary(): JSX.Element {
149
149
const { closeCurrentRun } = useCloseCurrentRun ( )
150
150
// Close the current run only if it's active and then execute the onSuccess callback. Prefer this wrapper over
151
151
// closeCurrentRun directly, since the callback is swallowed if currentRun is null.
152
- const closeCurrentRunIfValid = ( onSuccess ?: ( ) => void ) : void => {
152
+ const closeCurrentRunIfValid = ( onSettled ?: ( ) => void ) : void => {
153
153
if ( isRunCurrent ) {
154
154
closeCurrentRun ( {
155
- onSuccess : ( ) => {
156
- onSuccess ?.( )
155
+ onSettled : ( ) => {
156
+ onSettled ?.( )
157
157
} ,
158
158
} )
159
159
} else {
160
- onSuccess ?.( )
160
+ onSettled ?.( )
161
161
}
162
162
}
163
163
const [ showRunFailedModal , setShowRunFailedModal ] = useState < boolean > ( false )
You can’t perform that action at this time.
0 commit comments