diff --git a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue index 49a9ed164..51b90089f 100644 --- a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue @@ -63,7 +63,7 @@ export default { notifications: { query() { return notificationQuery(this.$i18n) - } + }, }, }, } diff --git a/webapp/graphql/PostQuery.js b/webapp/graphql/PostQuery.js index f377fb32d..bca276f64 100644 --- a/webapp/graphql/PostQuery.js +++ b/webapp/graphql/PostQuery.js @@ -1,5 +1,5 @@ import gql from 'graphql-tag' -import { postFragment, commentFragment, postCountsFragment, userFragment } from './Fragments' +import { postFragment, commentFragment, postCountsFragment } from './Fragments' export default i18n => { const lang = i18n.locale().toUpperCase() diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js index 0d2db7f4e..37551364e 100644 --- a/webapp/graphql/User.js +++ b/webapp/graphql/User.js @@ -77,7 +77,7 @@ export default i18n => { ` } -export const notificationQuery = (i18n) => { +export const notificationQuery = i18n => { const lang = i18n.locale().toUpperCase() return gql` ${commentFragment(lang)} @@ -105,7 +105,7 @@ export const notificationQuery = (i18n) => { ` } -export const markAsReadMutation = (i18n) => { +export const markAsReadMutation = i18n => { const lang = i18n.locale().toUpperCase() return gql` ${commentFragment(lang)} diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 014fc0fe7..f78d01be7 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -186,7 +186,7 @@ export default { }, update({ Post }) { this.hasMore = Post && Post.length >= this.pageSize - if(!Post) return + if (!Post) return const posts = uniqBy([...this.posts, ...Post], 'id') this.posts = posts },