You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given I am editing a blog post on gatsby demo
When I toggle the draft off and on again
Then the following error is displayed 👇
Error: useRemarkForm(markdownRemark) 'markdownRemark' was not found on the top node of the graphql query
1. Check if the 'markdownRemark' attribute is included in the GraphQL query. For example:
export const pageQuery = graphql` query BlogPostBySlug($slug: String!) { markdownRemark(fields: { slug: { eq: $slug } }) { ...TinaRemark // etc... } }2. If you are using an alias, For example:export const pageQuery = graphql` query BlogPostBySlug($slug: String!) { markdownRemark: markdownRemark(fields: { slug: { eq: $slug } }) { ...TinaRemark // etc... } }then you can optionally use the 'queryName' option to specify a new property in place of 'markdownRemark':export const remarkForm(BlogPostTemplate, { queryName: markdownRemark })`
Description
Expected result
No error when toggling draft status.
Environment
Tinacms Package Versions
current
master
:Tools
The text was updated successfully, but these errors were encountered: