Skip to content

fix: ignore when component is null #2

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 7 commits into from
May 3, 2025

Conversation

takahashim
Copy link
Collaborator

@takahashim takahashim commented Apr 30, 2025

AwesomeMapのエラーを修正します。

どうも result.componentnullになる場合があるようなので、その場合には終了するようにしてみます。
なおnullを返してくるのはprivateだからではないか思われます(なのでログイン時にはエラーが起きない、ということではないかと)。

送信しているGraphQLクエリ:

{"query":"query ($id: ID!, $after: String!) {\n component(id: $id) {\n id\n __typename\n ... on Proposals {\n proposals(first: 50, after: $after){\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n state\n title {\n translations {\n text\n locale\n }\n }\n author {\n id\n name\n }\n body {\n translations {\n text\n locale\n }\n }\n totalCommentsCount\n endorsementsCount\n address\n coordinates {\n latitude\n longitude\n }\n amendments {\n emendation {\n id\n }\n }\n category {\n id\n }\n }\n }\n }\n }\n }\n }","variables":{"id":909,"after":""}}

実行結果:

{"data":{"component":null}}

@takahashim takahashim changed the base branch from main to main-2025-01-15 April 30, 2025 08:56
@ayuki-joto ayuki-joto merged commit 0bdb5df into codeforjapan:main-2025-01-15 May 3, 2025
7 checks passed
@takahashim takahashim deleted the fix-api-fetcher branch May 3, 2025 08:36
ayuki-joto added a commit that referenced this pull request May 12, 2025
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