fix(commune): add fallbacks to commune name resolution

This commit is contained in:
Paul Chavard 2023-06-23 14:46:37 +01:00
parent f5bd129218
commit 02dcead04a
5 changed files with 81 additions and 17 deletions

View file

@ -1,6 +1,5 @@
- if champ.to_s.present?
%p= format_text_value(champ.to_s)
- if champ.data.present?
%p
Code INSEE :
= champ.data['city_code']
= format_text_value(champ.to_s)
- if champ.full_address?
Code INSEE :
= champ.commune&.fetch(:code)