ComponentNode documentationLinks empty when it exists in inspect tab

In my plugin I get the main component from a instance, and from the main component I read the documentationLinks, but for some some reason it is empty, even though when I click on the inspect tab for the instance it has the “View documentation” button which takes you to the correct documentation.

Does this happen because the component comes from a external component library?

// prints []
console.log(instance.mainComponent?.documentationLinks)

Probably, the link to the component documentation was added not to the ComponentNode, but to the ComponentSetNode. Try checking the parent of this ComponentNode.

1 Like

Thank you, that worked :smiling_face:

1 Like