I am looking to refine my data output by the category names.
How to filter the output items by the cat_array? Whilst preserving my text search filter?
{
"id": 1,
"title": "Title one",
"category_data": {
"2": "Team",
"7": "Queries"
}
},
I had tested using this:
return vm.info.filter(item => this.cat_array.includes(item.category_id))
Codepen example: https://codepen.io/anon/pen/XxNORW?editors=1011
Thanks