Skip to content

Autosave duplicates Nested docs breadcrumbs #13634

@italodr

Description

@italodr

Describe the Bug

When adding autosave to a collection's drafts with nested-docs, it generates multiple empty breadcrumbs on the page, and the information added is incorrect (as you can see in the image below).

Image

Link to the code that reproduces this issue

https://github.com/italodr/payloadcms-issues/tree/autosave-nested-docs

Reproduction Steps

  1. Clone the repo
  2. Follow the README file instructions
  3. Access to the admin page
  4. Go to "Pages" collection
  5. Add a new page
  6. Add the title

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

plugin: nested-docs

Environment Info

Binaries:
  Node: 22.14.0
  npm: 10.9.2
  Yarn: 1.22.22
  pnpm: 10.13.1
Relevant Packages:
  payload: 3.54.0
  next: 15.5.2
  @payloadcms/db-postgres: 3.54.0
  @payloadcms/email-nodemailer: 3.54.0
  @payloadcms/graphql: 3.54.0
  @payloadcms/next/utilities: 3.54.0
  @payloadcms/payload-cloud: 3.54.0
  @payloadcms/plugin-nested-docs: 3.54.0
  @payloadcms/richtext-lexical: 3.54.0
  @payloadcms/translations: 3.54.0
  @payloadcms/ui/shared: 3.54.0
  react: 19.1.1
  react-dom: 19.1.1
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:29 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions