Skip to content

Commit

Permalink
fix(Reverse): Coorectif sur le recherche par Lieux Toponyme "en mode …
Browse files Browse the repository at this point in the history
…"Pointer un lieu"
  • Loading branch information
lowzonenose committed Nov 7, 2024
1 parent 8da6176 commit 5fcb3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packages/Controls/ReverseGeocode/ReverseGeocode.js
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ var ReverseGeocode = class ReverseGeocode extends Control {
// on récupère la description à afficher dans la liste
var locationDescription = this._fillGeocodedLocationDescription(location);
// on ajoute chaque résutat à la liste
if (locationDescription.length !== 0) {
if (locationDescription && locationDescription.length !== 0) {
this._createReverseGeocodingResultElement(locationDescription, i);
}
}
Expand Down Expand Up @@ -1189,7 +1189,7 @@ var ReverseGeocode = class ReverseGeocode extends Control {

case "PositionOfInterest":
locationDescription += attr.toponym;
if (attr.postcode.length === 1) {
if (attr.postcode && attr.postcode.length === 1) {
locationDescription += ", " + attr.postcode[0];
}
locationDescription += " (" + attr.category.join(",") + ")";
Expand Down

0 comments on commit 5fcb3ca

Please sign in to comment.