From ac97696c6aabbcb1ee6d4263019b5ea2b2bd946d Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Fri, 22 Dec 2023 12:44:37 +0100 Subject: [PATCH] Do not show error instead show undefined value --- .../lib/components/tabs/InfoTabTrekking.svelte | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/tabs/InfoTabTrekking.svelte b/frontend/src/lib/components/tabs/InfoTabTrekking.svelte index c74c1fe..4959c0d 100644 --- a/frontend/src/lib/components/tabs/InfoTabTrekking.svelte +++ b/frontend/src/lib/components/tabs/InfoTabTrekking.svelte @@ -5,12 +5,12 @@

Distanza

-

{route.route_sport_details[0].distance} m

+

{route?.route_sport_details[0]?.distance} m

Dislivello Positivo

-

{route.route_sport_details[0].elevation_gain}

+

{route?.route_sport_details[0]?.elevation_gain}

@@ -20,32 +20,32 @@

Difficolta

-

{route.route_sport_details[0].difficulty_it}

+

{route?.route_sport_details[0]?.difficulty_it}

Dislivello Negativo

-

{route.route_sport_details[0].elevation_loss}

+

{route?.route_sport_details[0]?.elevation_loss}

Durata

-

{route.route_sport_details[0].duration}'

+

{route?.route_sport_details[0]?.duration}'

Altitudine max

-

{route.route_sport_details[0].altitude_max}

+

{route?.route_sport_details[0]?.altitude_max}

Altitudine min

-

{route.route_sport_details[0].altitude_min}

+

{route?.route_sport_details[0]?.altitude_min}

Tipo Percorso

-

{route.route_sport_details[0].route_type_it}

+

{route?.route_sport_details[0]?.route_type_it}