Search in select field which is related to another collection

default discord avatar
Prabhat
3 months ago
3

We have a collection that has a field related to another collection. When I try to search in that dropdown, some items donot come. Is there something that can be done to make the search better?


e.g.


{
      name: 'Person',
      type: 'array',
      fields: [
        {
          name: 'id',
          type: 'relationship',
          relationTo: 'city',
          label: 'value',
          hasMany: true
        },
        {
          name: 'value',
          type: 'text',
          admin: {
            readOnly: true,
          }
        },
      ],
      admin: {
        components: {
          RowLabel: ({ data: { value } }: any) => {
            return value;
          },
        },
      },
  • default discord avatar
    eddiedev
    2 months ago

    bump i am having this same issue and created another post about it. @Prabhat any luck?

  • default discord avatar
    Prabhat
    2 months ago

    Hey @eddiedev , this got resolved when I upgraded the version of payload. its running pretty smooth now with version

    1.10.2
  • default discord avatar
    eddiedev
    2 months ago

    Hey @Prabhat ty will take a look

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.