if some data 0 - push, if null - not push
Gitea Actions Demo / build_and_push (push) Successful in 1m13s
Details
Gitea Actions Demo / build_and_push (push) Successful in 1m13s
Details
This commit is contained in:
parent
80a0da4812
commit
8675c7b3dd
|
|
@ -34,16 +34,17 @@ export const GetWorkout = (url: string) => {
|
|||
for (let i in response.data.results) {
|
||||
times.push(response.data.results[i].timestamp);
|
||||
coords.push([response.data.results[i].longitude, response.data.results[i].latitude]);
|
||||
if (response.data.results[i].elevation) {
|
||||
if (response.data.results[i].elevation !== null) {
|
||||
elevation.push(response.data.results[i].elevation);
|
||||
}
|
||||
if (response.data.results[i].speed) {
|
||||
if (response.data.results[i].speed !== null) {
|
||||
speed.push(msToKmh(response.data.results[i].speed));
|
||||
}
|
||||
if (response.data.results[i].power) {
|
||||
console.log(response.data.results[i].power );
|
||||
if (response.data.results[i].power !== null) {
|
||||
power.push(response.data.results[i].power);
|
||||
}
|
||||
if (response.data.results[i].heart_rate) {
|
||||
if (response.data.results[i].heart_rate !== null) {
|
||||
heart_rate.push(response.data.results[i].heart_rate);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue