Skip to content

Commit d0977e9

Browse files
committed
Send only the English version in world_location_names
1 parent d210d07 commit d0977e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/presenters/publishing_api/worldwide_organisation_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def world_location_names
166166
item.world_locations.map do |world_location|
167167
{
168168
content_id: world_location.content_id,
169-
name: world_location.name,
169+
name: world_location.translations.find_by(locale: "en")&.name || world_location.name,
170170
}
171171
end
172172
end

0 commit comments

Comments
 (0)