payload icon indicating copy to clipboard operation
payload copied to clipboard

List view: Column selection is not persisted when sorting multiple times

Open toggm opened this issue 1 year ago • 0 comments

Describe the Bug

Description

Related to: https://github.com/payloadcms/payload/issues/9492

When adding additional columns to a view and sorting multiple times (i.e. sort same columns twice), the selected columns are reset.

Link to the code that reproduces this issue

https://github.com/toggm/payloadcms-column-filtering-sorting-bug-demo

Reproduction Steps

  • Create mutiple entries in the Persons collection
  • Add columns as shown in the video
  • Sort by a column twice Image

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

area: ui

Environment Info

yarn run v1.22.22
$ cross-env NODE_OPTIONS=--no-deprecation payload info

Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.22
  pnpm: N/A
Relevant Packages:
  payload: 3.8.0
  next: 15.1.0
  @payloadcms/db-postgres: 3.8.0
  @payloadcms/email-nodemailer: 3.8.0
  @payloadcms/graphql: 3.8.0
  @payloadcms/next/utilities: 3.8.0
  @payloadcms/payload-cloud: 3.8.0
  @payloadcms/richtext-lexical: 3.8.0
  @payloadcms/translations: 3.8.0
  @payloadcms/ui/shared: 3.8.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: linux
  Arch: x64
  Version: #48-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 14:04:52 UTC 2024
  Available memory (MB): 63909
  Available CPU cores: 16

Done in 1.19s.

toggm avatar Dec 17 '24 08:12 toggm