Skip to content

Commit

Permalink
Merge pull request #8910 from alphagov/remove-ww-office-links
Browse files Browse the repository at this point in the history
Do not present non-edition links for Worldwide Offices
  • Loading branch information
brucebolt authored Mar 20, 2024
2 parents 4756da8 + fd630be commit c52c3e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions app/presenters/publishing_api/worldwide_office_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ def edition_links
end

def links
{
contact: [],
parent: [],
worldwide_organisation: [],
}
{}
end

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ def present(...)
},
}

expected_links = {
contact: [],
parent: [],
worldwide_organisation: [],
}
expected_links = {}

presented_item = present(worldwide_office)

Expand Down

0 comments on commit c52c3e8

Please sign in to comment.