Purdue-CSUSB / openideas

Vote on ideas to improve your community
MIT License
0 stars 1 forks source link

New comments not displayed #24

Open zachbryant opened 6 years ago

zachbryant commented 6 years ago

Bug description

My comments are not being displayed when I submit them. When I refresh the page, I only see json data.

Expected behavior

I expected my comment to show up.

Steps to reproduce the issue:

  1. Go to any idea page
  2. Type a comment
  3. Click submit
  4. Refresh

Technical details:

Additional context Here is the json data output: {"_id":"5af5cad5294fab4130fdd8e4","voted":["5af5c8294d89f70028db78f4"],"title":"My Idea 4","description":"4","authorId":"5af5c8294d89f70028db78f4","createdAt":"2018-05-11T16:54:45.401Z","updatedAt":"2018-05-11T17:05:52.610Z","__v":0,"author":{"_id":"5af5c8294d89f70028db78f4","token":"vGynWAXK8NoieLkEjPLFpmKRHBw","email":"hankins.jay@gmail.com","name":"Jay H","createdAt":"2018-05-11T16:43:21.418Z","updatedAt":"2018-05-12T05:29:06.790Z","__v":0},"comments":null}

It looks like my comment on idea 4 ended up on idea 3, and my comment for idea 3 ended up on idea 1