mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Obviously your own slug does not matter
This commit is contained in:
parent
e6d7d1a936
commit
efe9c96edb
@ -121,7 +121,8 @@ export default {
|
||||
const {
|
||||
data: { User },
|
||||
} = await this.$apollo.query({ query: checkSlugAvailableQuery, variables })
|
||||
this.slugAvailable = User && !User[0]
|
||||
const existingSlug = User && User[0] && User[0].slug
|
||||
this.slugAvailable = !existingSlug || existingSlug === this.currentUser.slug
|
||||
}, 500)
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user