payload icon indicating copy to clipboard operation
payload copied to clipboard

List view sort buttons cause columns to reset to default

Open mfilteau opened this issue 2 years ago • 4 comments

Describe the Bug

In the list view, sorting any column causes the list to reset to the default columns.

https://github.com/user-attachments/assets/7f86c665-d032-4b01-8f43-611912d47998

Link to the code that reproduces this issue

https://github.com/mfilteau/payload-template-blank.git

Reproduction Steps

  1. Go to the Users collection
  2. The default columns are Email, Updated At and Created At
  3. Show the Id column using the columns selector
  4. Sort any column using the sort buttons
  5. The Id column will disappear even though it is still selected in the columns selector

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

area: ui

Environment Info

Binaries:
  Node: 20.10.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  payload: 3.1.0
  next: 15.0.0
  @payloadcms/db-mongodb: 3.1.0
  @payloadcms/email-nodemailer: 3.1.0
  @payloadcms/graphql: 3.1.0
  @payloadcms/next/utilities: 3.1.0
  @payloadcms/payload-cloud: 3.1.0
  @payloadcms/richtext-lexical: 3.1.0
  @payloadcms/translations: 3.1.0
  @payloadcms/ui/shared: 3.1.0
  react: 19.0.0-rc-65a56d0e-20241020
  react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 65457
  Available CPU cores: 16

mfilteau avatar Nov 24 '24 14:11 mfilteau

can you please assign this issue to me ?

farzan190 avatar Nov 24 '24 16:11 farzan190

Just ran into this as well

parsadotsh avatar Nov 25 '24 07:11 parsadotsh

🚀 This is included in version v3.1.1

github-actions[bot] avatar Nov 25 '24 21:11 github-actions[bot]

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Nov 27 '24 04:11 github-actions[bot]