forked from mystiq/hydrogen-web
Account for duration being null
This commit is contained in:
parent
db792ab5a9
commit
772f7a2757
1 changed files with 4 additions and 1 deletions
|
@ -85,8 +85,11 @@ export class LogItem {
|
|||
}
|
||||
|
||||
durationWithoutType(type) {
|
||||
if (this.duration) {
|
||||
return this.duration - this.durationOfType(type);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
durationOfType(type) {
|
||||
if (this._values.t === type) {
|
||||
|
|
Loading…
Reference in a new issue