WIP: Missing link settings inside a component repeater

Browser: Arc Version 1.174.3 (91540) Chromium Engine Version 158.0.8127.89, Safari Version 26.6.2
OS: macOS

A Link field inside a component repeater does not display its configuration options after selecting a link type.

Steps to reproduce:

  1. Create a component with a Repeater property containing only a Link field.
  2. Add an instance to a page and expand a repeater item.
  3. Select “Internal post/page” as the link type.

Thanks for checking!
Malte

Hello @dnb,

sadly, I was unable to replicate the issue locally. Can you export the component and send it over (or paste it here), so I can check on your example?

Thank you,
Matej

Hey Matjej!

thanks for your reply. Please find the Export-Json below. It’s a minimal Test-Component with a Repeater-Link.

{
  "components": [
    {
      "id": "c5f777",
      "elements": [
        {
          "id": "c5f777",
          "name": "block",
          "parent": 0,
          "children": [
            "08cb2a"
          ],
          "settings": {},
          "label": "Test: Repeater-Link"
        },
        {
          "id": "08cb2a",
          "name": "block",
          "parent": "c5f777",
          "children": [
            "f45dc8"
          ],
          "settings": {
            "hasLoop": true,
            "query": {
              "objectType": "array",
              "arrayEditor": "[]"
            }
          }
        },
        {
          "id": "f45dc8",
          "name": "button",
          "parent": "08cb2a",
          "children": [],
          "settings": {
            "text": "Test link",
            "link": {
              "type": "meta",
              "useDynamicData": "{query_array @key:'link' @field-type:'link'}"
            }
          }
        }
      ],
      "properties": [
        {
          "id": "items",
          "label": "Items",
          "type": "repeater",
          "connections": {
            "08cb2a": [
              "query"
            ]
          },
          "key": "items",
          "default": [
            {
              "id": "item01",
              "link": []
            }
          ],
          "fields": [
            {
              "id": "link",
              "label": "Link",
              "type": "link"
            }
          ]
        }
      ],
      "variants": [],
      "_created": 1795954690,
      "_user_id": 1,
      "_version": "2.5-beta2",
      "category": "Tests",
      "desc": "Minimal reproduction for a Link field inside a component repeater."
    }
  ],
  "globalClasses": []
}

Hi @dnb,

thank you for the component. I was able to replicate the issue with your component and now I will investigate what is different.

Thanks,
Matej

Hey @dnb,

do you know how you created this component? Because I can replicate the issue with your component, but I can’t with the component that I just created.

If you create a new component in Beta 2, you get this issue as well?

Matej

Hey @Matej !
Thanks for checking! I recreated it manually now, and it worked. I then found the issue: it was caused by an empty default link value in the repeater. Bricks expects a link object, so the selected link’s properties were lost when the repeater data was copied.

Hey @dnb,

yeah, I can also replicate it with manually editing the JSON of the component or using yours, and I see the reason why there is an issue… but I would like to find a way why this occured and how, so we can fix the source of the problem, not just “patch” it :slight_smile:

Do you remember how you created that component? Which Bricks version?

Thanks,
Matej

Hey @Matej!
Yes — the component was a simplified version of a complex component created through MCP in Bricks 2.5-beta2.

The generated JSON already contained an empty array ("link": []) as the default link value inside a repeater row. So the problematic value came from the AI-generated data, rather than a manual action in the builder.

I recreated the component manually in Bricks, and it worked. I haven’t found a way to produce the same invalid value through the regular UI.

Sorry for mistakenly reporting this as a Bricks bug, and thanks for taking the time to investigate! I should have verified the generated component data first. I’m so sorry!

That said, validating or normalizing the incoming JSON might still be a good idea to catch malformed values like this.

Hey @dnb, thanks for clarifying how the component was created, no need to apologize. :slight_smile:

I tried to replicate the component with prompt via MCP, but it’s working. Are you using Bricks MCP or some third party one?

Can you share your prompt that you used to create this component? That might help, and if you include tool calls, even better.

Thank you,
Matej