Merge pull request #9118 from tchak/fix-raison-sociale

fix(api_entreprise): raison_sociale can be nil
This commit is contained in:
Colin Darie 2023-06-01 12:19:21 +00:00 committed by GitHub
commit 87b5d3b1ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,10 @@ module Types
object.nom_commercial || ''
end
def raison_sociale
object.raison_sociale || ''
end
def code_effectif_entreprise
# we need this in order to bypass Hashie::Dash deserialization issue on nil values
object.code_effectif_entreprise