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 dev "cannot invoke map of undefined" bug #298

Merged
merged 1 commit into from Jul 27, 2020
Merged

Fix dev "cannot invoke map of undefined" bug #298

merged 1 commit into from Jul 27, 2020

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Jul 25, 2020

ArticleInfo should query for articleReplies as it is using articleReply data.

Before

Staging:
image

Localhost:
image

After

Detail page can load without problem

Analysis

<ArticleInfo> in ArticleDetail page actually uses articleReplies field. However, It's not declared in its fragment, thus articleReplies fields are not populated properly in detail page.

This PR adds the field in loading sequence so that the field exists no matter where <ArticleInfo> is used.

ArticleInfo should query for articleReplies as it is using articleReply data
@MrOrz MrOrz self-assigned this Jul 25, 2020
Copy link
Member

@nonumpa nonumpa left a comment

Choose a reason for hiding this comment

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

LGTM!

@MrOrz MrOrz merged commit aae1102 into dev Jul 27, 2020
@MrOrz MrOrz deleted the fix-undefined branch July 27, 2020 04:42
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.

None yet

2 participants