Skip to content

Commit dccae3d

Browse files
committed
Deep copy stats object
1 parent 25aae06 commit dccae3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Frontend/ui-library/src/UI/SessionTest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ export class SessionTest {
139139
return;
140140
}
141141

142-
this.records.push(stats);
142+
const statsCopy = structuredClone(stats);
143+
this.records.push(statsCopy);
143144
}
144145

145146
private onCollectingFinished() {

0 commit comments

Comments
 (0)