fixed some strange error

This commit is contained in:
Henry Jameson 2021-06-07 20:01:57 +03:00 committed by Sam Therapy
parent f6af5edfb0
commit 6728198286
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -248,7 +248,8 @@ export const getters = {
},
findUserByUrl: state => query => {
return state.users
.find(u => u.statusnet_profile_url.toLowerCase() === query.toLowerCase())
.find(u => u.statusnet_profile_url &&
u.statusnet_profile_url.toLowerCase() === query.toLowerCase())
},
relationship: state => id => {
const rel = id && state.relationships[id]