Hi all. Does anyone know what the error is? When I show the value that the console.log returns it says 7 but after that it says that it cannot read the attributes property. I do not understand what is happening. Why does it display the value 7 if it can’t read the attributes property? Thanks
This only happens when there are no active conditional cards. If there is one running there is no error
7
button-card.js:425 ButtonCardJSTemplateError: TypeError: Cannot read properties of undefined (reading 'attributes') in 'console.log(states['input_select.players_home'].attributes.options.length);
let cantMedias = sta...'
at Je.eval (eval at _evalTemplate (button-card.js:425:9295), <anonymous>:16:24)
Those don’t look like the attributes that you’ve posted. Take a screenshot of the developer tools → states page showing the attributes for input_select.players_home
It’s very weird. This occurs when I don’t have any conditional cards active. I also don’t know what I can do to enter this template when there is no conditional card active. You would also need it to come in when no media player is running. I show you that code too
I show the image of what is being reproduced. If there are several things I show the image randomly but this error occurs when there is nothing playing
This occurs when there is nothing to play. When I show with a console.log the result tells me that I have 7 options but nevertheless, followed by that it gives me that error