diff --git a/webapp/components/CommentList/CommentList.spec.js b/webapp/components/CommentList/CommentList.spec.js index 460f1a4ea..3e77d84fb 100644 --- a/webapp/components/CommentList/CommentList.spec.js +++ b/webapp/components/CommentList/CommentList.spec.js @@ -50,6 +50,9 @@ describe('CommentList.vue', () => { }, }, }, + $route: { + hash: '', + }, } stubs = { EditorContent: "
", diff --git a/webapp/components/FollowButton.vue b/webapp/components/FollowButton.vue index e1cad8c8e..22046e047 100644 --- a/webapp/components/FollowButton.vue +++ b/webapp/components/FollowButton.vue @@ -75,7 +75,7 @@ export default { const followedUser = follow ? data.followUser : data.unfollowUser this.$emit('update', followedUser) - } catch { + } catch (err) { optimisticResult.followedByCurrentUser = !follow this.$emit('optimistic', optimisticResult) }