Skip to content

fix: projectItem.type GraphQL query in wrong place#39

Merged
gr2m merged 1 commit intomainfrom
fix-type-query
Mar 24, 2022
Merged

fix: projectItem.type GraphQL query in wrong place#39
gr2m merged 1 commit intomainfrom
fix-type-query

Conversation

@mikesurowiec
Copy link
Copy Markdown
Collaborator

Why

I ran into an error when using project.items.add()

Selections can't be made directly on unions (see selections on ProjectNextItemContent)

This is because type field was supposed to be on the projectItem not on the content.

Are there any tests I can add to prevent this in the future?

@mikesurowiec mikesurowiec changed the title fix: type field in wrong place fix: projectItem.type GraphQL query in wrong place Mar 24, 2022
@mikesurowiec mikesurowiec requested a review from gr2m March 24, 2022 20:57
@gr2m gr2m merged commit 1f46c74 into main Mar 24, 2022
@gr2m gr2m deleted the fix-type-query branch March 24, 2022 22:36
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.3.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants