Skip to content

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

@david-code david-code requested a review from garobrik October 3, 2023 19:17
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
@garobrik
Copy link
Member

garobrik 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
@david-code david-code deleted the fix/fix-input-to-site-creation branch October 4, 2023 19:11
johannesparty pushed a commit that referenced this pull request Oct 22, 2025
* fix: Don't submit locationSource on create site

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.

* fix: Try to appease linter

* fix: Fix github warning

* fix: Use improved syntax
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.

3 participants