Hi,
I'm experiencing a UI issue in the Payload Admin panel where options in a relationship filter dropdown appear duplicated.
Environment:
- Payload version: 3.79.0
- Database: Postgres
- Using @payloadcms/next
Example:
I have a collection called "linhas" with two records:
1 - nova
2 - soft
The API returns the correct data:
GET /api/linhas
{
"docs": [
{ "id": 2, "nome": "soft" },
{ "id": 1, "nome": "nova" }
]
}
However, when I use the filter in the Admin UI for a relationship field (Produtos → filter by "linhas"), the dropdown shows duplicated values, for example:
None
soft
nova
soft
soft
I also noticed that the Admin UI triggers multiple GET requests to /api/linhas.
My relationship field is defined like this:
{
name: 'linhas',
type: 'relationship',
relationTo: 'linhas',
hasMany: false
}
The database and API responses look correct, so the issue seems to be only in the Admin UI.
Has anyone experienced this before or knows a possible fix?
Thanks!