Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not attempt to show siblings if there aren't any #3269

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Jul 17, 2024

When a parent manual has been withdrawn and redirected, we don't get the value for child_section_groups as the redirect content item doesn't contain this value.

Therefore not showing any siblings items at all when this is the case, as we can't be sure what the correct parent actually is for this manual section.

This also resolves an issue where there are no breadcrumbs given for an item.

Trello card

When a parent manual has been withdrawn and redirected, we don't get the
value for `child_section_groups` as the redirect content item doesn't
contain this value.

Therefore not showing any siblings items at all when this is the case,
as we can't be sure what the correct parent actually is for this manual
section.
The `siblings` variable has the same name as a method, so renaming the
variable to avoid confusion.
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3269 July 17, 2024 09:59 Inactive
@brucebolt brucebolt marked this pull request as ready for review July 22, 2024 10:27
Copy link
Contributor

@beccapearce beccapearce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me! Thank you for doing it Bruce! 🤩

@brucebolt brucebolt merged commit 09d7ae8 into main Jul 22, 2024
12 checks passed
@brucebolt brucebolt deleted the fix-hmrc-siblings branch July 22, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants