Skip to content

Some images are not populated in a dynamic zone when repeatable field named as "items" #42

@whitetown

Description

@whitetown

I discovered some weird bug with naming.

I have a collection "pages".
it contains a dynamic zone (sections) with a few components.
For example there are four components:

  • hero
  • cards
  • tabs
  • instructions

All these components have another, the same repeatable component.

  • In "hero" I named it breadcrumbs
  • in "cards" just items
  • in "tabs" - tabs
  • in "instructions" - also items

For some reason images are not populated in cards and instructions

you can see see the output from the api there:
https://cms.propera.ch/api/energy-pages/43?populate=deep,10

if I explicitly ask to populate sections.items.image - it returns the image for cards and instructions
https://cms.propera.ch/api/energy-pages/43?populate[0]=sections.items.image
but of course everything else is missing

What could be a reason?
Initially I blamed myself, then recently updated strapi, so I tried to downgrade it.
Finally I added one more repeatable field to "cards" and named it differently (cards:). and images start working for the field.

initial compare hero and cards

hero-cards

the same component in tabs

tabs

the same component in cards but named differently

cards

So I think that it's definitely because of the name "items".

of course I can rename it although it requires some extra work for me on the company web portal. :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions