Setting Component Variable using JS

it works only when the chain returns a variable, but when it returns undefined you get the error. you have indeed the problem of not finding the variable, that is related to components, but the code is prone to errors and refactoring as the example of the link will make it more robust.

this may be helpful:

1 Like