Skip to content

Commit

Permalink
LineTooltip : si la donnée qualité n'est pas définie, le LineTooltip …
Browse files Browse the repository at this point in the history
…n'affiche pas de ligne supplémentaire
  • Loading branch information
Paul LOPEZ committed Nov 10, 2024
1 parent 94e8e41 commit d5ae49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tooltips/LineTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
{{ typologyNames[feature.properties.type] ?? 'Inconnu' }}
</div>
</div>
<div v-if="displayQuality()" class="py-1 flex items-center justify-between">
<div v-if="displayQuality() && feature.properties.quality" class="py-1 flex items-center justify-between">
<div class="text-base font-bold">
Qualité
</div>
<div class="text-sm text-right">
{{ qualityNames[feature.properties.quality as LaneQuality] ?? 'Inconnue' }}
{{ qualityNames[feature.properties.quality as LaneQuality] ?? '-' }}
</div>
</div>
</div>
Expand Down

0 comments on commit d5ae49d

Please sign in to comment.