debugger;
console.log(_val);
this.context.favourite_ids.length>0 && this.context.favourite_ids.includes(_val.uid) ?_val.follow=true:_val.follow=false;
acc=[...acc,_val];
},[]) || [];
this.items = (res?.items ?? []).reduce((acc, val) => { const { favourite_ids } = this.context; val.follow = favourite_ids.includes(val.uid); return [ ...acc, val ]; }, []);
Обсуждают сегодня