Hi @justin!
I have 2 Editable Text components calling the same query.
Inside of this query I can get the component id (stored in the triggeredById variable).
Is there any way to get a reference to the component and read it’s value?
I can obviously do something like this:
let value = ""
if(triggeredById == "component1") value = component1.value
else if(triggeredById == "component2") value = component2.value
Is there any way to avoid the if-else?
E.g. something like this (pseudocode): triggeredById.value
Thanks!