-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
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:

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

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
- set
enableListViewSelectAPI
totrue
on the media collection of the _community Payload project - upload some images
- open the media list view in the admin panel
- only select the File Name column
- the image thumbnail is not shown <- Issue
- 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