0👍
✅
Within your map
you’re not returning any value – try this instead:
this.favorites = posts.items.map(item => {
const items = {};
items['id'] = item.ID;
items['name'] = item.post_title;
return items;
});
Source:stackexchange.com