Hide preview button unless collection supports preview and content is published (#70)

* Hide preview button unless collection supports preview and content is published

* Remove isPublished check

---------

Co-authored-by: Matt Kane <mkane@cloudflare.com>
This commit is contained in:
Delowar Hossain
2026-04-07 02:07:50 +06:00
committed by GitHub
parent ab21f29f71
commit fe74f8a33e
2 changed files with 5 additions and 1 deletions

View File

@@ -832,6 +832,7 @@ function ContentEditPage() {
isDeleting={deleteMutation.isPending}
supportsDrafts={collectionConfig.supports.includes("drafts")}
supportsRevisions={collectionConfig.supports.includes("revisions")}
supportsPreview={collectionConfig.supports.includes("preview")}
currentUser={currentUser}
users={usersData?.items}
onAuthorChange={handleAuthorChange}