adrianhajdin / threads

Develop Threads, Next.js 13 app that skyrocketed to 100 million sign-ups in less than 5 days, and dethroned giants like Twitter, ChatGPT, and TikTok to become the fastest-growing app ever!
https://threads-psi.vercel.app
1.42k stars 272 forks source link

Unhandled Runtime Error #80

Open rahulsingh-99 opened 9 months ago

rahulsingh-99 commented 9 months ago

Error: Cannot read properties of undefined (reading '_id')

Screenshot (98)

R0ckyC0der commented 9 months ago

<ThreadCard id={thread._id} currentUserId={user.id} parentId={thread.parentId} content={thread.text} author={thread.author} community={thread.community} createdAt={thread.createdAt} comments={thread.children} />

rahulsingh-99 commented 9 months ago

Would anyone be able to help me with this error? It's very irritating it keeps showing me even though I check all the code thrice.

amerdoahmed commented 9 months ago

The ID you need to past is the ID of the Thread