summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/main')
-rwxr-xr-xclient/components/main/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 95a96236..7cc11c09 100755
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -10,7 +10,7 @@ Template.editor.onRendered(() => {
search(term, callback) {
callback(Emoji.values.map((emoji) => {
return emoji.includes(term) ? emoji : null;
- }));
+ }).filter(emoji => !!emoji));
},
template(value) {
const imgSrc = Emoji.baseImagePath + value;
@@ -31,7 +31,7 @@ Template.editor.onRendered(() => {
callback(currentBoard.activeMembers().map((member) => {
const username = Users.findOne(member.userId).username;
return username.includes(term) ? username : null;
- }));
+ }).filter(username => !!username));
},
template(value) {
return value;