mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix lint
This commit is contained in:
parent
2a544376a3
commit
5f14b4c45f
@ -63,7 +63,7 @@ export default {
|
||||
notifications: {
|
||||
query() {
|
||||
return notificationQuery(this.$i18n)
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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)}
|
||||
|
||||
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user