Q42 / sanity-plugin-page-tree

MIT License
23 stars 3 forks source link

Documents are instantly published on creation #7

Closed ThomasBroch closed 6 months ago

ThomasBroch commented 6 months ago

Whenever I create a document through the page-tree in sanity studio, using the button marked A in the screenshot, the document gets published instantly, even if some of the validation rules have failed.

If I use the regular document create button in the top left, marked B, then this behaviour does not occur.

sanity_issue

Why is this an issue?

If documents are published instantly, they are published in a state that does not adhere to the requirements specified in the schema, leading to sort of "ghost" documents that are also not visible in studio because they do not adhere to the schema.