Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
fix(next): version._status field queried/returned for entities without drafts (#14423)
### What? Fixes an issue where the `_status` field was being queried or returned for entities (collections/globals) that have versions enabled but drafts disabled. ### Why? The `_status` field only exists when `drafts` are enabled (not just `versions`). So the following issue occurred: **Collections with versions (no drafts)**: When viewing version comparison pages in the admin UI, the app threw `QueryError: The following path cannot be queried: version._status` because the view code was attempting to filter versions by `_status` for collections that don't have drafts enabled. ### How? - Check if drafts are enabled before querying `version._status` in version comparison views
P
Patrik committed
a22dff343be9549bb9f38ed6e84ab22a212310b1
Parent: eba6cfc
Committed by GitHub <noreply@github.com>
on 10/31/2025, 5:16:49 PM