ed-roh / mern-social-media

Complete React MERN Full Stack Social Media App
962 stars 850 forks source link

Undefined userPicturePath from PostsWidget #32

Open farendivaz opened 1 year ago

farendivaz commented 1 year ago

image

sovietgenie commented 1 year ago

Getting the same issue here. I did notice as I was following along with Ed's video on YouTube, when he has the Network tab open on his console, monitoring the payloads for the Likes feature he was testing (video timestamp at 5:06:20), userPicturePath is one of the attributes in the payload, whereas when I'm monitoring my own, userPicturePath is not being passed.

Attaching screenshots below for reference. Ed's: eds_console_network_tab Mine: my_console_network_tab

That red highlighted 'undefined' item in my network tab is referencing that same file path/error you're getting. I'm going through and trying to find my mistake, but I think the lack of that attribute being passed when the posts update after a change is evidence that I missed passing a param in somewhere. Going to compare mine and Ed's files till I find what's wrong. I'll update the thread if I find it.