Skip to content

Relation field in repeatable component results in numeric accordion title #12503

@devmlx

Description

@devmlx

Bug report

Describe the bug

When you create a repeatable component with only a relation field inside the labels on the accordion on the edit page show as IDs:

image

I would expect it would show the title of the selected element of the first select box.

Steps to reproduce the behavior

  1. create a new collection type
  2. Add a repeatable component
  3. create a new component and only add a relation field to another component
  4. Create a new item on the collection type created under Improvement/readme #1. Add a few elements in the repeatable section
  5. Edit the item.

Expected behavior

I would expect the accordion header to have a textual title - in this case the first element of the select box. Similar to what happens when there is a text element in the component as per below

image

System

  • Strapi version: v4
  • Database: postgres
  • Operating system: linux

Additional context

You may believe that if there is only a relation field inside the repeatable component I should not use a repeatable component for it in the first place. The reason we are doing it this way is because it turns it's not intuitive for the user to have the relation fields to the right and the regular fields on the left. It confuses them. That's why we are doing it this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: will not fixWon't fix as it's either intended or for some other reason

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions