Hi there, I have a bug with the custom component here on easyplant.
Builder content link
With this preview URL:
Builder public api key
b701a8b1c4d744048ad10c35760795f4
What are you trying to accomplish
I’ve created a custom component “BlogRelatedArticles”. It has an input named “articles” which is a list of references to the “blog-article” model. So, in my component I use props to get that “articles” array and get actual articles from there. It works perfectly fine when I’m on the website, but I don’t have a “value” field for any article while I’m in the Builder visual editor. Please see the screenshots.
We do have a new option available to include references in the builder state. If you go ahead and add options={{ includeRefs: true }} to the SDKs <BuilderComponent> it should include references to the relevant models, and give you the data that you want.
Another option is to dynamically fetch references by given Id;
blog-article(query:
{
id: “{’$in’: [list of ids]}”
}
)