Skip to main content
Solved

ComponentNode documentationLinks empty when it exists in inspect tab


jonathan_Edwards

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)

Best answer by tank666

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

View original
This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • Answer
  • April 5, 2023

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


jonathan_Edwards

Thank you, that worked ☺️


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings