fixed some strange error

This commit is contained in:
Henry Jameson 2021-06-07 20:01:57 +03:00
parent aa38223e87
commit 5e83672274
1 changed files with 2 additions and 1 deletions

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]