Skip to content

Commit

Permalink
chore: fix issue with logs without wallClockUpdatedAt (#26473)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile authored Apr 11, 2023
1 parent 4a0210a commit 9c5fffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/src/cypress/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9c5fffb

Please sign in to comment.