diff --git a/src/App.vue b/src/App.vue index 946c647..51b923d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -110,7 +110,7 @@ export default { const waypoint = Object.assign({}, item, { timestamp: new Date(item.timestamp) }); [courseKey, eleKey, hdopKey, speedKey, vdopKey].forEach((key) => { if (waypoint[key] === null || waypoint[key] === undefined) { - delete waypoint.elevation; + delete waypoint[key]; } }); waypoints.push(waypoint);