Skip to content

Commit

Permalink
Do not present non-edition links for Worldwide Offices
Browse files Browse the repository at this point in the history
In #8908, we switched
Worldwide Offices to use edition links, so the draft version of the
document can have different links to the parent.

Now that all Worldwide Offices have been republished with edition links,
we can remove the code to publish the non-edition links.
  • Loading branch information
brucebolt committed Mar 19, 2024
1 parent 20dbf02 commit fd630be
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 fd630be

Please sign in to comment.