Skip to content

Error when accessing versions: "No client field found" for deeply nested fields in blocks with tabs #12376

@timothylp

Description

@timothylp

Describe the Bug

When trying to access the versions of a document that contains a blocks field, and one of the blocks includes a tabs field, the following error occurs:

Error: No client field found for pages._index-0-0-0

This seems related to deep nesting inside blocks → tabs → fields, as referenced in #11458, but it's still reproducible with additional depth.

Link to the code that reproduces this issue

https://github.com/timothylp/payload-issue-reproduction/tree/bug/versions-break-tabs

Reproduction Steps

  1. Create a collection with a blocks field
  2. Define a block that includes a tabs field
  3. Inside one of the tabs, add any regular field (e.g. text)
  4. Create a document using that block and fill in the inner field
  5. Try to view the document’s version history
  6. Payload throws: Error: No client field found for pages._index-0-0-0

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Binaries:
  Node: 20.18.2
  npm: N/A
  Yarn: N/A
  pnpm: 9.15.4
Relevant Packages:
  payload: 3.37.0
  next: 15.3.0
  @payloadcms/email-nodemailer: 3.37.0
  @payloadcms/graphql: 3.37.0
  @payloadcms/next/utilities: 3.37.0
  @payloadcms/payload-cloud: 3.37.0
  @payloadcms/plugin-cloud-storage: 3.37.0
  @payloadcms/richtext-lexical: 3.37.0
  @payloadcms/storage-s3: 3.37.0
  @payloadcms/translations: 3.37.0
  @payloadcms/ui/shared: 3.37.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32486
  Available CPU cores: 32

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions