eslint didn't complain on undefined variable
In my opinion, this issue should not have happened, as I expect the linter (eslint
in this case) to raise an error in this case:
get formData() {
const values = Object.keys(this.checked)
if(!this.data)
return {[name]: values[0]}
return {[name]: values}
}
The variable name
is not defined!