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: Don't submit locationSource on create site #477

Merged
merged 4 commits into from
Oct 4, 2023

Conversation

david-code
Copy link
Contributor

@david-code david-code commented Oct 3, 2023

This allows me to create a site locally, and logically makes sense. However I'm not sure why Typescript does not pick up on locationSource being included in the input to the GraphQL call here. @shrouxm any idea?

Description

Checklist

  • Corresponding issue has been opened
  • New tests added

Related Issues

Fixes #....

Verification steps

This allows me to create a site locally, and logically makes sense.
However I'm not sure why Typescript does not pick up on this error.
@david-code david-code force-pushed the fix/fix-input-to-site-creation branch from 01130bd to aa22a19 Compare October 3, 2023 19:29
@shrouxm
Copy link
Member

shrouxm commented Oct 3, 2023

it's a longstanding TypeScript deficiency. at some point i tried to find a way to format our mutations to catch this kind of bug: techmatters/terraso-client-shared#45, but the fix i tried there wouldn't actually help with this case anyway 😫

@david-code
Copy link
Contributor Author

it's a longstanding TypeScript deficiency. at some point i tried to find a way to format our mutations to catch this kind of bug: techmatters/terraso-client-shared#45, but the fix i tried there wouldn't actually help with this case anyway 😫

Thanks for the link, that's interesting!

@david-code david-code merged commit 5a896f0 into main Oct 4, 2023
4 checks passed
@david-code david-code deleted the fix/fix-input-to-site-creation branch October 4, 2023 19:11
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