Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(graphql): Cannot read property '0' of undefined #45

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

Merged
merged 1 commit into from
Nov 21, 2019
Merged

fix(graphql): Cannot read property '0' of undefined #45

merged 1 commit into from
Nov 21, 2019

Conversation

philibea
Copy link
Contributor

In case you use WPLM plugins in wordpress. If you start with a page Fench then a page translated into English but must remain in draft (the page does not contain slug).
So we come across a graphql bug related to the error:
TypeError: Can not read property '0' of undefined
at Object.getContent (/../node_modules/smooth-backend-wordpress/lib/acf/api.js:113:18)
at processTicksAndRejections (internal / process / task_queues.js: 93: 5)
at async Promise.all (index 0)

Or data should always be an array.

@gregberge
Copy link
Member

@philibea can you rebase, I will merge it!

@philibea
Copy link
Contributor Author

@neoziro can we merge this pr ?

@gregberge gregberge merged commit a936930 into smooth-code:master Nov 21, 2019
@gregberge
Copy link
Member

Changes:

  • smooth-backend-wordpress: 0.1.1-alpha.62 => 0.1.1-alpha.63

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