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

Bugfix: Remove non-null from MenuItem path #1865

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

furedal
Copy link
Contributor

@furedal furedal commented Apr 22, 2021

From Wordpress it is possible to add a custom link without an URL.
When that happens GraphQL will throw Cannot return null for non-nullable field \"MenuItem.path\"..

What does this implement/fix? Explain your changes.

From Wordpress it is possible to add a custom link without an URL.
When that happens GraphQL will throw Cannot return null for non-nullable field \"MenuItem.path\"..

Does this close any currently open issues?

Any relevant logs, error output, GraphiQL screenshots, etc?

Cannot return null for non-nullable field "MenuItem.path".

Any other comments?

Where has this been tested?

**Operating System: Linux

**WordPress Version: 5.7.1

From Wordpress it is possible to add a custom link without an URL. When that happens GraphQL will throw `Cannot return null for non-nullable field \"MenuItem.path\".`.
@furedal furedal changed the title Remove non-null from MenuItem path Bugfix: Remove non-null from MenuItem path Apr 22, 2021
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 79.026% when pulling c98efd4 on furedal:bugfix/menuitem-path into cbe87ef on wp-graphql:develop.

Copy link
Collaborator

@jasonbahl jasonbahl left a comment

Choose a reason for hiding this comment

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

Thanks for submitting! I'll review shortly.

@jasonbahl jasonbahl merged commit 5d21e33 into wp-graphql:develop Jul 1, 2021
@jasonbahl jasonbahl mentioned this pull request Jul 1, 2021
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