From b378bcb2861c0e61c3ef9f9ce79db2f73541de22 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Mon, 27 May 2019 17:02:00 -0300 Subject: [PATCH 1/2] Fix edit field render bug(CommentForm) - 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 --- webapp/components/comments/CommentForm/index.vue | 14 ++++++-------- webapp/components/comments/CommentForm/spec.js | 4 +--- webapp/components/comments/CommentList/index.vue | 10 ++++++---- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/webapp/components/comments/CommentForm/index.vue b/webapp/components/comments/CommentForm/index.vue index 05ab2356e..f16c31ae3 100644 --- a/webapp/components/comments/CommentForm/index.vue +++ b/webapp/components/comments/CommentForm/index.vue @@ -5,14 +5,12 @@ >