-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
Hi everyone,
I can't get findLayers() to work with the path prop.
I'm using Template API V2.
instance.findLayers((child) => true) works fine
instance.findConnectedInstances((child) => true, { path: ['parentLayerName'], }) also works fine
but just calling instance.findLayers((child) => true, { path: ['parentLayerName'] })
or even instance.findLayers((child) => true, { path: [] })
immediately gets me an error, even before using the result in any way:

Am I doing something wrong, or is there a bug in findLayers, or maybe it's described incorrectly in the docs and doesn't actually accept path?