Do not error out but show undefined value
This commit is contained in:
parent
c9faabc945
commit
03ff5947fc
1 changed files with 8 additions and 8 deletions
|
@ -5,12 +5,12 @@
|
|||
<div id="grid">
|
||||
<div>
|
||||
<p>Distanza</p>
|
||||
<p>{route.route_sport_details[1].distance} m</p>
|
||||
<p>{route?.route_sport_details[1]?.distance} m</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Positivo</p>
|
||||
<p>{route.route_sport_details[1].elevation_gain}</p>
|
||||
<p>{route?.route_sport_details[1]?.elevation_gain}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
@ -20,32 +20,32 @@
|
|||
|
||||
<div>
|
||||
<p>Difficolta</p>
|
||||
<p>{route.route_sport_details[1].difficulty_it}</p>
|
||||
<p>{route?.route_sport_details[1]?.difficulty_it}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Negativo</p>
|
||||
<p>{route.route_sport_details[1].elevation_loss}</p>
|
||||
<p>{route?.route_sport_details[1]?.elevation_loss}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Durata</p>
|
||||
<p>{route.route_sport_details[1].duration}'</p>
|
||||
<p>{route?.route_sport_details[1]?.duration}'</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine max</p>
|
||||
<p>{route.route_sport_details[1].altitude_max}</p>
|
||||
<p>{route?.route_sport_details[1]?.altitude_max}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine min</p>
|
||||
<p>{route.route_sport_details[1].altitude_min}</p>
|
||||
<p>{route?.route_sport_details[1]?.altitude_min}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Tipo Percorso</p>
|
||||
<p>{route.route_sport_details[1].route_type_it}</p>
|
||||
<p>{route?.route_sport_details[1]?.route_type_it}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue