payload
payload copied to clipboard
List view sort buttons cause columns to reset to default
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
- Go to the Users collection
- The default columns are Email, Updated At and Created At
- Show the Id column using the columns selector
- Sort any column using the sort buttons
- 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
can you please assign this issue to me ?
Just ran into this as well
🚀 This is included in version v3.1.1
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.