Skip to content

Commit

Permalink
Merge pull request #2108 from MTES-MCT/fix/2106-carto-with-empty-nomo…
Browse files Browse the repository at this point in the history
…ccupant

[BO - Cartographie] Correction pour éviter l'absence d'affichage si le nom de l'occupant est vide
  • Loading branch information
numew committed Jan 12, 2024
2 parents 73b7e76 + f212374 commit 85433e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function getMarkers(offset) {
city: signalement.villeOccupant,
reference: signalement.reference,
score: signalement.score,
name: signalement.nomOccupant.toUpperCase() +' '+ signalement.prenomOccupant,
name: signalement.nomOccupant ? signalement.nomOccupant.toUpperCase() : '' +' '+ signalement.prenomOccupant,
url: `/bo/signalements/${signalement.uuid}`,
criteres: crit,
details: `${signalement.details}`
Expand Down

0 comments on commit 85433e5

Please sign in to comment.