diff options
author | Drew Fisher <drew.m.fisher@gmail.com> | 2016-07-21 02:09:14 -0700 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-07-21 11:09:14 +0200 |
commit | 3643bd49962da68476f2fe19bfda9273fa31dd44 (patch) | |
tree | 7a617a074530da136608883dc8a61280ddac1be0 /client/components/main | |
parent | 4d0e4cea914ad0886a6d9674d6dfca545e942d22 (diff) | |
download | wekan-3643bd49962da68476f2fe19bfda9273fa31dd44.tar.gz wekan-3643bd49962da68476f2fe19bfda9273fa31dd44.tar.bz2 wekan-3643bd49962da68476f2fe19bfda9273fa31dd44.zip |
Fix bug where you get a "null" option in @-mention autocomplete (#649)
Diffstat (limited to 'client/components/main')
-rwxr-xr-x | client/components/main/editor.js | 4 |
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; |