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,7 +85,10 @@ export class LogItem {
|
|||
}
|
||||
|
||||
durationWithoutType(type) {
|
||||
return this.duration - this.durationOfType(type);
|
||||
if (this.duration) {
|
||||
return this.duration - this.durationOfType(type);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
durationOfType(type) {
|
||||
|
|
Loading…
Reference in a new issue