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

fix(gatsby/www): Tried to unbox an edge but it is already a node #21927

Merged
merged 3 commits into from
Mar 3, 2020

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Mar 3, 2020

Fixes #21916

The problem was caused by #21792 which simplified node access. It inadvertedly forgot one case of edge (how''d that happen?) which got fixed in #21792 but that did not fix the "unboxing" of the edge, leading to an unguarded property access on undefined.

Also refactored a few things. See middle commit for the meat.

@pvdz pvdz requested a review from a team as a code owner March 3, 2020 10:18
@pvdz pvdz changed the title Fix 21916 fix(gatsby/www): Tried to unbox an edge but it is already a node Mar 3, 2020
@pvdz pvdz requested a review from a team March 3, 2020 10:23
Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@pvdz pvdz merged commit 608e033 into master Mar 3, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-21916 branch March 3, 2020 10:38
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.

Gastby site brokes when try to search dependency
2 participants