adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
4.96k stars 1.83k forks source link

When updating any post you get 'length' of likes undefined even if you clone the repo #115

Closed galpodlipnik1 closed 2 weeks ago

nk1102 commented 2 years ago

Got any solution of it ? Same issue I am facing @adrianhajdin please see

bharatpaliwal-169 commented 2 years ago

@adrianhajdin Look into it this is a bug.

shantanusharma6079 commented 1 year ago

@adrianhajdin Look into it this is a bug.

In Post.js file write Likes component like this :

const Likes = () => { if (post?.likes?.length > 0) {

and it works!!