fix legacy api carte serializer
This commit is contained in:
parent
25e031f8bb
commit
8f01eebf1f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue