forked from mystiq/hydrogen-web
Fix error in reduce
This commit is contained in:
parent
4704a70cb7
commit
58105824d9
1 changed files with 1 additions and 3 deletions
|
@ -141,9 +141,7 @@ export class LogItem implements ILogItem {
|
||||||
} else if (this._children) {
|
} else if (this._children) {
|
||||||
return this._children.reduce((sum, c) => {
|
return this._children.reduce((sum, c) => {
|
||||||
const duration = c.durationOfType(type);
|
const duration = c.durationOfType(type);
|
||||||
if (duration) {
|
return sum + (duration ?? 0);
|
||||||
return sum + duration;
|
|
||||||
}
|
|
||||||
}, 0);
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue