diff --git a/app/views/shared/champs/carte/_show.html.haml b/app/views/shared/champs/carte/_show.html.haml index decb10dd0..224d79cb0 100644 --- a/app/views/shared/champs/carte/_show.html.haml +++ b/app/views/shared/champs/carte/_show.html.haml @@ -1,3 +1,4 @@ -.carte{ data: { geo: geo_data(champ) } } -.geo-areas - = render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false } +- if champ.to_s.present? + .carte{ data: { geo: geo_data(champ) } } + .geo-areas + = render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false } diff --git a/app/views/shared/dossiers/_champs.html.haml b/app/views/shared/dossiers/_champs.html.haml index 6e5afdf78..090a3d2ad 100644 --- a/app/views/shared/dossiers/_champs.html.haml +++ b/app/views/shared/dossiers/_champs.html.haml @@ -41,8 +41,7 @@ = "#{c.libelle} :" %td.rich-text %span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) } - - if c.to_s.present? - = render partial: "shared/champs/carte/show", locals: { champ: c } + = render partial: "shared/champs/carte/show", locals: { champ: c } - else %th.libelle = "#{c.libelle} :"