File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
test-result-summary-client/src/Build Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,6 @@ function TopLevelBuildTable(props) {
79
79
80
80
// Declare a function that handles the Keep Forever checkbox.
81
81
async function handleKeepForverClick ( record ) {
82
- // Destructure the 'buildInfo' object from an object with an undefined property named 'buildInfo'.
83
- const { buildInfo } = { buildInfo } ;
84
82
// If the 'record' object has a 'key' property:
85
83
if ( record . key ) {
86
84
// Loop through each 'build' object in the 'buildInfo' array:
@@ -100,9 +98,7 @@ function TopLevelBuildTable(props) {
100
98
break ;
101
99
}
102
100
}
103
- // Wait for 100ms before setting the 'buildInfo' state variable.
104
- await new Promise ( ( r ) => setTimeout ( r , 100 ) ) ;
105
- setBuildInfo ( buildInfo ) ;
101
+ setBuildInfo ( structuredClone ( buildInfo ) ) ;
106
102
}
107
103
}
108
104
You can’t perform that action at this time.
0 commit comments