-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
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:
I would expect it would show the title of the selected element of the first select box.
Steps to reproduce the behavior
- create a new collection type
- Add a repeatable component
- create a new component and only add a relation field to another component
- Create a new item on the collection type created under Improvement/readme #1. Add a few elements in the repeatable section
- 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
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.

