Save Draft is not enabled until after publishing #6721
-
I'm getting started with Payload export const Posts: CollectionConfig = {
slug: "posts",
admin: {
useAsTitle: "title",
defaultColumns: ["title", "slug", "updatedAt"],
preview: (doc) => {
return `${process.env.PAYLOAD_PUBLIC_WEB_URL}/preview?url=${encodeURIComponent(`${process.env.PAYLOAD_PUBLIC_WEB_URL}/blog/${doc?.slug}`)}&secret=${process.env.PAYLOAD_PUBLIC_DRAFT_KEY}`;
},
},
versions: {
drafts: true,
},
access: {
read: () => true,
update: () => true,
create: () => true,
delete: () => true,
},
fields: [
{
name: "title",
type: "text",
required: true,
},
slugField(),
],
}; I can go to the admin panel in Payload and create posts, but the "Save Draft" button will only be enabled if I publish a Post and then change it. Am I doing something wrong? I'd like to save the draft before publishing the post |
Beta Was this translation helpful? Give feedback.
Answered by
javierlinked
Jun 11, 2024
Replies: 1 comment 1 reply
-
This looks to have been fixed for the next release. 63bc6ae |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bahatron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This looks to have been fixed for the next release. 63bc6ae