Skip to content

Commit

Permalink
fix: ajout ctrl existence address_detail (#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlr authored Dec 7, 2023
1 parent a926219 commit 0e74458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/services/lbajob.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ const getCity = (recruiter) => {
if (recruiter.establishment_location) {
// cas mandataire
city = recruiter.establishment_location
} else if ("localite" in recruiter.address_detail) {
} else if (recruiter.address_detail && "localite" in recruiter.address_detail) {
city = recruiter.address_detail.localite
} else if ("libelle_commune" in recruiter.address_detail) {
} else if (recruiter.address_detail && "libelle_commune" in recruiter.address_detail) {
city = recruiter.address_detail.libelle_commune
}

Expand Down

0 comments on commit 0e74458

Please sign in to comment.