payloadcms / payloadcms/payload
Filtering by relationship entries sometimes removes the selected item
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
Describe the Bug
When filtering by relationship entries, the filtering itself appears to work correctly:
- The filter parameters in the URL look correct.
- The displayed results seem to match the selected filter.
However, after selecting an item from the referenced collection, the currently selected item is often removed unexpectedly. The behavior appears random and is not consistently reproducible.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload
Reproduction Steps
https://github.com/user-attachments/assets/acc3692f-9969-4321-9ba4-fe9297373d1c
Which area(s) are affected?
area: core, area: ui
Environment Info
payload: 3.85.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue points to the Payload repository and a reproduction recording, but names no files or tests. Start by reproducing the behavior in the referenced collection UI and trace the relationship-filtering flow in the core and UI areas; done means selecting a referenced item no longer removes the current item unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100