Hi @doghousedev! Are you able to pass your data down as {{query5.data}} instead of {{formatDataAsArray(query.data)}} since query5.data is already an array?
Hi @Kenny , I am having the same problem. My custom component works well with hard coded array. however when I push in with model it does not seem to work. Just like @doghousedev in the green window my array looks fine.
many thanks for any help.
I am trying to graph a node-edge diagram with my data in retool.
@alperugr, could you share a screenshot of your current setup with your array with us? Also, are there any indications you can share that tells us that your array isn't "working" in your custom component? Having a screenshot/recording can help everyone in the community to understand what you're experiencing.
I also have a problem with getting query data to the custom component model, and as this here was the last unsolved post I found about this topic, I will follow up here
In my app I created a custom component showing a tree, the data for the tree will be injected into the custom component by using the model, and the tree data there is collected by a JS query. My JS query runs fine and produces the expected output. It's an array of 50 elements, each containing a map of 2 elements:
In my custom component model field, I can see the content of JS query result, and also there it looks like expected:
But now when I look at the whole model object, the array contains 50 elements, but the internal maps are empty:
That is also what I see in the custom component, it will just show no data inside the tree.
Is my undestanding of the data injection into the model wrong or is there an obvious error somewhere in my usage?