From 9c5fffb1e4904515138b91316c875b6a21f60010 Mon Sep 17 00:00:00 2001 From: Matt Schile Date: Tue, 11 Apr 2023 15:52:56 -0600 Subject: [PATCH] chore: fix issue with logs without wallClockUpdatedAt (#26473) --- packages/driver/src/cypress/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/driver/src/cypress/log.ts b/packages/driver/src/cypress/log.ts index fb27019fad00..be50ef1132e2 100644 --- a/packages/driver/src/cypress/log.ts +++ b/packages/driver/src/cypress/log.ts @@ -318,7 +318,7 @@ export class Log { } // if the log doesn't have a wallClockUpdatedAt, then set it to the wallClockStartedAt, otherwise set it to the current time - this.obj.wallClockUpdatedAt = !this.attributes.wallClockUpdatedAt ? this.attributes.wallClockStartedAt : new Date().toJSON() + this.obj.wallClockUpdatedAt = !this.attributes.wallClockUpdatedAt && this.attributes.wallClockStartedAt ? this.attributes.wallClockStartedAt : new Date().toJSON() _.extend(this.attributes, this.obj)