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 {
|
const {
|
||||||
data: { User },
|
data: { User },
|
||||||
} = await this.$apollo.query({ query: checkSlugAvailableQuery, variables })
|
} = 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)
|
}, 500)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user