fix(api_entreprise): nom_commercial can be nil
This commit is contained in:
parent
f23a92683e
commit
86f18de7a6
1 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,10 @@ module Types
|
||||||
object.capital_social || '-1'
|
object.capital_social || '-1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def nom_commercial
|
||||||
|
object.nom_commercial || ''
|
||||||
|
end
|
||||||
|
|
||||||
def code_effectif_entreprise
|
def code_effectif_entreprise
|
||||||
# we need this in order to bypass Hashie::Dash deserialization issue on nil values
|
# we need this in order to bypass Hashie::Dash deserialization issue on nil values
|
||||||
object.code_effectif_entreprise
|
object.code_effectif_entreprise
|
||||||
|
|
Loading…
Reference in a new issue