default value for total time

This commit is contained in:
vcoppe
2024-06-20 00:54:54 +02:00
parent b13cf62597
commit a8e36f3acc

View File

@@ -632,7 +632,7 @@ export class TrackSegment extends GPXTreeLeaf {
// time // time
if (points[i].time === undefined) { if (points[i].time === undefined) {
statistics.local.time.total.push(undefined); statistics.local.time.total.push(0);
} else { } else {
if (statistics.global.time.start === undefined) { if (statistics.global.time.start === undefined) {
statistics.global.time.start = points[i].time; statistics.global.time.start = points[i].time;