We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This line:
sanity/packages/sanity/src/presentation/useMainDocument.ts
Line 170 in 6cb0865
assumes drafts perspective when trying to resolve the main document given a path. It should use the current perspective to do so.
summon @pedrobonamin
The text was updated successfully, but these errors were encountered:
The result is that the main document isn't found if it's created in a release and therefore doesn't exist in the draft.
I tried usunt the perspectiveStack from usePerspective and that worked
perspectiveStack
usePerspective
Sorry, something went wrong.
pedrobonamin
Successfully merging a pull request may close this issue.
This line:
sanity/packages/sanity/src/presentation/useMainDocument.ts
Line 170 in 6cb0865
assumes drafts perspective when trying to resolve the main document given a path. It should use the current perspective to do so.
summon @pedrobonamin
The text was updated successfully, but these errors were encountered: