From 672819828682c19e5e4be6292b55a18271e04999 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 7 Jun 2021 20:01:57 +0300 Subject: [PATCH] fixed some strange error --- src/modules/users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/users.js b/src/modules/users.js index 9ed06897..fb92cc91 100644 --- a/src/modules/users.js +++ b/src/modules/users.js @@ -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]