System Information
- Strapi Version: v3.2.5
- Operating System: Kubuntu 20.04
- Database: Postgres
- Node Version: v12.19.0
- NPM Version: 6.14.8
- Yarn Version: 1.22.5
What I’m trying to build:
- A system where you can add and collect links in multiple lists.
My current structure is like this:
1. Link
Here is where I save links as unique to avoid duplication, one by one.
2. List
This is where I create Lists with existing Links (1)
3. Component Link:
I then created a component with a relation to Link (1).
This is then added as a repeater to Lists (2).
(I think the problem might be here)
Now when editing a List(2):
I’m able to add several Links(1) to List(2) in a Repeater-Component(3):
a) The Problem(s):
- When I do a GET to /Lists:
1.1 First time a link is used inside a list it works.
1.2 All further usage of the same link inside another list copies it and saves it with a new ID + null values.
My thought => Looks like the repeater component creates each time a new entry?
b) This error might be related or another one:
After I renamed components in the backend, Swagger did not update the names in the documentation. I did try regenerate documentation, remove and re-install plugin and re-install.
Adding new information as a comment when I find something new.
// Edit 1: Updated title and added a more clear description
// Edit 2:
I now removed the repeater component and added a a simple relation:
List(2) - has one or more - Links(1)
Then I also removed all previous data I had entered, and re-added it.
Now it works fine.
The Swagger-Documentation title is a separate bug.