Skip to content
Snippets Groups Projects

Fix edit field render bug(CommentForm)

Closed Hannes Heine requested to merge pr690head into pr690base
  1. May 28, 2019
  2. May 27, 2019
    • Matt Rider's avatar
      Fix edit field render bug(CommentForm) · b378bcb2
      Matt Rider authored
      
      - 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: default avatarMike Aono <aonomike@gmail.com>
      b378bcb2
Loading