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

DS-748 | @ericbakenhus | Check for empty array before outputing menu #426

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

ericbakenhus
Copy link
Contributor

@ericbakenhus ericbakenhus commented Jun 3, 2024

READY FOR REVIEW

Summary

  • Related menu currently checks that the link array exists before outputting ul; switches to checking that the array exists and is not empty

Review By (Date)

  • Soon-ish

Criticality

  • Medium (level A on a lot of pages)

Review Tasks

Setup tasks and/or behavior to test

  1. Look at code

Associated Issues and/or People

  • DS-748

Comment on lines -43 to 46
{props.blok.relatedMenuLinks && (
{!!props.blok.relatedMenuLinks?.length && (
<div className={`ood-content-nav__menu-group`}>
{props.blok.relatedMenuTitle && (
<Heading level={'h2'} classes={`ood-content-nav__title`}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't output anything if there are no related menu links.

Copy link
Member

@sherakama sherakama left a comment

Choose a reason for hiding this comment

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

Ok.

@ericbakenhus ericbakenhus merged commit 0d9e452 into dev Jun 4, 2024
5 checks passed
@ericbakenhus ericbakenhus deleted the fix/DS-748 branch June 4, 2024 17:27
@ericbakenhus ericbakenhus mentioned this pull request Jun 4, 2024
wmui51 pushed a commit that referenced this pull request Jun 12, 2024
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.

2 participants