payload icon indicating copy to clipboard operation
payload copied to clipboard

List view sort buttons cause incorrect relationship type data to show

Open rilrom opened this issue 3 months ago • 0 comments

Describe the Bug

When relationship types are used in list view columns, the data shown becomes incorrect when using the sort buttons.

https://github.com/user-attachments/assets/39af4229-e6e3-45d0-aa1e-7fa3b4491b30

Link to the code that reproduces this issue

https://github.com/rilrom/payload/tree/list-view-relationship-sort-issue

Reproduction Steps

  1. Upload a file to the media collection.
  2. Create another post with the recently uploaded file connected to it.
  3. Use the sort buttons in the collection list view.
  4. Eventually the file will appear in both rows.

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

area: ui

Environment Info

node: 20.17.0 pnpm: 9.7.1 next: 15.0.0 payload: 3.0.0-beta.124 @payloadcms/payload-db-postgres: 3.0.0-beta.124

rilrom avatar Nov 05 '24 22:11 rilrom