Skip to content

Commit d06de37

Browse files
committed
fix test
1 parent ae49479 commit d06de37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tracing/tracer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export class Tracer {
7171

7272
// Apply screenshot processor if configured and screenshot is present
7373
if (this.screenshotProcessor && data.screenshot_base64) {
74-
data = { ...data }; // Don't modify the original object
75-
data.screenshot_base64 = this.screenshotProcessor(data.screenshot_base64);
74+
const processedScreenshot = this.screenshotProcessor(data.screenshot_base64);
75+
data = { ...data, screenshot_base64: processedScreenshot }; // Don't modify the original object
7676
}
7777

7878
// Generate timestamps

0 commit comments

Comments
 (0)