Value: query is not defined

I have some odd behaviour:

A text component (hidden) says "value: [name of query] is not defined".

The Default value has the [name of query] with a .filter() and the JS produces a value (the default value text is green), the query produces data.

Any ideas?

Hey @jclutterbuck!

This might seam like a bit out of left field but are you seeing dependency cycle errors when you load the page? Can you try renaming the component from Lead to lead or something similar?

It looks like there's an issue with using the name of the component in a transformer that's passed to it even if, semantically, the name would be pointing to something different:

I won't claim to understand it, but your fix worked, and I'm grateful.

I didn't see any dependency cycle errors on load (unless I just wan't seeing them).