Here is a code snippet I am working with:
new Vue({
el: '#core',
data: {
checkedThemes: []
...
}
})
Afterwards, I have the following code:
mounted() {
...
var theme = parseInt(parameters['theme']);
this.checkedThemes.push(theme);
...
}
When I try to push the value, a TypeError: Cannot read property 'name' of undefined is raised. Strangely, it works when I add values manually on the webpage.
Update: This error occurs in Chrome. In Firefox, I receive: [Vue warn]: Error in render: "TypeError: themes[checkedTheme] is undefined"
Despite the error, the array seems to be properly filled after the push operation.
https://i.sstatic.net/q57jE.png
Any insights on where this error might originate from?