summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-21 11:03:50 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-23 13:05:38 -0400
commita5a2826700b1fc6b19ba38698cfa703f58476bc6 (patch)
treea57d55458bd2b8f96673513a8f91c88d72feb85f /web/react/stores
parent4172d0286e61b4fd5459fc64e7653535751a012d (diff)
downloadchat-a5a2826700b1fc6b19ba38698cfa703f58476bc6.tar.gz
chat-a5a2826700b1fc6b19ba38698cfa703f58476bc6.tar.bz2
chat-a5a2826700b1fc6b19ba38698cfa703f58476bc6.zip
Added keyboard selection to search autocomplete
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/user_store.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/stores/user_store.jsx b/web/react/stores/user_store.jsx
index e3e1944ce..ce80c5ec9 100644
--- a/web/react/stores/user_store.jsx
+++ b/web/react/stores/user_store.jsx
@@ -221,7 +221,9 @@ class UserStoreClass extends EventEmitter {
const profiles = [];
for (const id in profileMap) {
- profiles.push(profileMap[id]);
+ if (profileMap.hasOwnProperty(id)) {
+ profiles.push(profileMap[id]);
+ }
}
return profiles;