#18316·payload

Folders(v3): Changing folder on draft documents does not reflect in folder view until published

Author: XedaGmrCreated Sep 25, 2026Updated Sep 29, 2026
Labelsstatus: needs-triagearea: uiBugv3

Describe the Bug

When moving or creating a document inside a folder within a collection that has versions: { drafts: true }, changing the folder on a draft does not update the document's location in the folder view until the document is published.

Following the fix in #17412 (which made the folder view prefer draft titles), the folder location is still queried from the published state, leaving draft documents in their old folder (or orphaned if newly created as a draft) until published.

For a better user experience, I think it is better to show the element in the new location to be more intuitive and consistent with the title or how the table view works, where all the values are fetched from the draft version.

I'm available to fix it.

Link to the code that reproduces this issue

https://github.com/XedaGmr/payload-testing

Reproduction Steps

  1. Configure a collection with both folders: true and versions: { drafts: true }.
  2. Create two folders: Folder A and Folder B.
  3. Create a document in Folder A and publish it.
  4. Edit the document and change its folder to Folder B without publishing it.
  5. Navigate back to the admin folder view.

The reproduction repository is already seeded with a test SQLite DB (payload-testing.db):

Visual ProofImage

Inside Test Folder 1 is possible to find the Test Post item.

Image

The value assigned to the item is Test Folder 2

Which area(s) are affected?

area: ui

Environment Info

Binaries:
  Node: 24.15.0
  npm: 11.12.1
  Yarn: N/A
  pnpm: 11.0.9
Relevant Packages:
  payload: 3.90.2
  next: 16.3.3
  @payloadcms/db-sqlite: 3.90.2
  @payloadcms/drizzle: 3.90.2
  @payloadcms/graphql: 3.90.2
  @payloadcms/live-preview: 3.90.2
  @payloadcms/live-preview-react: 3.90.2
  @payloadcms/next/utilities: 3.90.2
  @payloadcms/plugin-form-builder: 3.90.2
  @payloadcms/plugin-nested-docs: 3.90.2
  @payloadcms/plugin-redirects: 3.90.2
  @payloadcms/plugin-search: 3.90.2
  @payloadcms/plugin-seo: 3.90.2
  @payloadcms/richtext-lexical: 3.90.2
  @payloadcms/translations: 3.90.2
  @payloadcms/ui/shared: 3.90.2
  react: 19.2.6
  react-dom: 19.2.6
Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Fri, 28 Aug 2026 11:47:30 +0000
  Available memory (MB): 15384
  Available CPU cores: 12