diff --git a/src/logging/LogItem.ts b/src/logging/LogItem.ts index bd6958e1..0a896841 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -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) {