I have an array with companies like this:
[{
"id": 1,
"firstname": "lorem",
"lastname": "ipsum",
"name": "something",
"subscription": "premium",
"active": 1
}]
The companies are displayed in a layout and when I click on one of them it triggers:
lockCompany(id, index) {
Vue.set(this.companies, index, {active: 0});
}
But.. when I set active to 0 it removes firstname etc.. Am I doing something wrong?