Hello guys!
I’m building a plugin for my design team that uses the isAsset() function. In one part, my plugin exams all nested children within a given node and returns whether each children is an asset.
The function is doing a pretty good job recognizing icons but I ran into some issues with nested components. For example in the screenshot below, the isAsset() function returns true for two layers within the Instagram component, but only one within the facebook component. There were also a few times that running the function on the same component returns different results.
Does anyone have similar experience? Is there a workaround to this?

