Then I assigned the 2 theme variables to the 2 function inputs.
When the function is called, the 2 inputs are not defined, and the following error is displayed in the debugger console.
TypeError: Cannot read property ‘$variableName’ of undefined
How can I fix this error?
I have added the values manually and it works.
Should it work if I replaced the theme variables with app variables?