In case you have multiple components with the same name, the add-on chooses the first matching component by name.
Example:
I have two components named Cart - one being an icon and one being a large part of a shopping cart page. The dependencies looks like
Navigation -> Cart (the icon)
ShoppingCartPage -> Cart (the shopping cart line item component)
When I look at dependencies for the ShoppingCartPage component, I see a dependency (incorrectly) to the Cart icon component.
The issue is in the findComponentDependencies function that uses find to find the first component named Cart, instead of finding all and then figuring out which one to use
In case you have multiple components with the same name, the add-on chooses the first matching component by name.
Example:
I have two components named
Cart
- one being an icon and one being a large part of a shopping cart page. The dependencies looks likeWhen I look at dependencies for the
ShoppingCartPage
component, I see a dependency (incorrectly) to theCart
icon component.The issue is in the
findComponentDependencies
function that usesfind
to find the first component namedCart
, instead of finding all and then figuring out which one to use