Skip to content

Fix edit field render bug(CommentForm)

Hannes Heine requested to merge pr690head into pr690base

Created by: Tirokk

mattwr18 Authored by mattwr18 Merged


  • remove no-ssr, which was not necessary and causing the edit field not to appear the majority of the times visiting a Post.
  • this was really bad user experience since a user would need to refresh the page to comment.
  • removed args in refetchPostComments as there are no params passed in when it is called anymore
  • needed to add an if statement since if there are no comments on a Post, then this.$apollo.queries.Post is undefined and it errors out trying to call refetch()
  • update test to remove no-ssr

Co-authored-by: Mike Aono aonomike@gmail.com

🍰 Pullrequest

Issues

Merge request reports