fix legacy api carte serializer

This commit is contained in:
Paul Chavard 2020-04-17 12:46:07 +02:00
parent 25e031f8bb
commit 8f01eebf1f

View file

@ -38,7 +38,7 @@ class DossierSerializer < ActiveModel::Serializer
end end
if champ_carte.present? if champ_carte.present?
champs_geo_areas = geo_areas.filter do |geo_area| champs_geo_areas = champ_carte.geo_areas.filter do |geo_area|
geo_area.source != GeoArea.sources.fetch(:selection_utilisateur) geo_area.source != GeoArea.sources.fetch(:selection_utilisateur)
end end
champs_geo_areas << champ_carte.selection_utilisateur_legacy_geo_area champs_geo_areas << champ_carte.selection_utilisateur_legacy_geo_area