Skip to content

filename cell does not show thumbnail when using the enableListViewSelectAPI in upload enabled collections #13856

@jhb-dev

Description

@jhb-dev

Describe the Bug

When setting enableListViewSelectAPI to true on an upload-enabled collection and then only selecting the File Name column in the list view UI, the file name cell does not show the image thumbnail, see:

Image

However, when also selecting the URL and Mime Type fields in the UI, the thumbnail is shown:

Image

Expected behavior: the thumbnail is shown when only the File Name column is selected.
Actual behaviour: the thumbnail is only shown when also the URL and Mime Type columns are selected.

I noticed this when working on #13832, where we also need to select additional fields for upload-enabled collections.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/tree/main/test/_community

Reproduction Steps

  1. set enableListViewSelectAPI to true on the media collection of the _community Payload project
  2. upload some images
  3. open the media list view in the admin panel
  4. only select the File Name column
  5. the image thumbnail is not shown <- Issue
  6. also select the URL and Mime Type fields -> now the image thumbnail is shown

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

area: ui

Environment Info

Binaries:
  Node: 24.3.0
  npm: 11.4.2
  Yarn: N/A
  pnpm: 9.7.1
Relevant Packages:
  payload: 3.56.0
  next: 15.4.4
  @payloadcms/db-postgres: 3.56.0
  @payloadcms/live-preview-react: 3.56.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:40 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6041
  Available memory (MB): 24576
  Available CPU cores: 14

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions