Do not allow to find by name in findUser()
This commit is contained in:
parent
09f9640be1
commit
ab4a75bdd9
4 changed files with 54 additions and 17 deletions
|
|
@ -110,7 +110,7 @@ const UserProfile = {
|
|||
const maybeName = userNameOrId.name
|
||||
|
||||
// Check if user data is already loaded in store
|
||||
const user = this.$store.getters.findUser(maybeId || maybeName)
|
||||
const user = maybeId ? this.$store.getters.findUser(maybeId) : this.$store.getters.findUserByName(maybeName)
|
||||
if (user) {
|
||||
loadById(user.id)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue