forked from mystiq/hydrogen-web
explicitly check for type, rather than truthy
This commit is contained in:
parent
74fb15e426
commit
afc538e875
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ export class LogItem implements ILogItem {
|
||||||
// in (v)alues, (l)abel and (t)ype are also reserved.
|
// in (v)alues, (l)abel and (t)ype are also reserved.
|
||||||
const item: ISerializedItem = {
|
const item: ISerializedItem = {
|
||||||
// (s)tart
|
// (s)tart
|
||||||
s: parentStartTime? this.start - parentStartTime : this.start,
|
s: typeof parentStartTime === "number" ? this.start - parentStartTime : this.start,
|
||||||
// (d)uration
|
// (d)uration
|
||||||
d: this.duration,
|
d: this.duration,
|
||||||
// (v)alues
|
// (v)alues
|
||||||
|
|
Loading…
Reference in a new issue