dawidseipold / melsea

0 stars 0 forks source link

List Component object fix #3

Open dawidseipold opened 2 years ago

dawidseipold commented 2 years ago

Currently, List component requires the item to be passed directly as a prop, which, results in the track object being duplicated in getServerSideProps. It needs adjusting!

tracks.forEach((track, index) => {
  Object.assign(track, { track: { ...track, loved: loved[index] } });
 });
dawidseipold commented 2 years ago

Partially fixed in the most recent commit. Still needs improvements.