diff --git a/src/logging/LogItem.ts b/src/logging/LogItem.ts index 1d9ce20b..0e5b0ecb 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -144,7 +144,7 @@ export class LogItem implements ILogItem { // in (v)alues, (l)abel and (t)ype are also reserved. const item: ISerializedItem = { // (s)tart - s: parentStartTime? this.start - parentStartTime : this.start, + s: typeof parentStartTime === "number" ? this.start - parentStartTime : this.start, // (d)uration d: this.duration, // (v)alues