diff options
author | Maxime Quandalle <mquandalle@wekan.io> | 2016-07-21 12:52:32 +0200 |
---|---|---|
committer | Maxime Quandalle <mquandalle@wekan.io> | 2016-07-21 12:52:32 +0200 |
commit | 301210c87bd50c8491844182e515c0ffd97c18f6 (patch) | |
tree | ba575f36847ebafc6967e6c9343f506b52e6a21c /client | |
parent | dd95f0b00256289d53d413ba9030631a8c14d836 (diff) | |
download | wekan-301210c87bd50c8491844182e515c0ffd97c18f6.tar.gz wekan-301210c87bd50c8491844182e515c0ffd97c18f6.tar.bz2 wekan-301210c87bd50c8491844182e515c0ffd97c18f6.zip |
Fix eslint testing
Partially reverting c8705a0
Diffstat (limited to 'client')
-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 7cc11c09..da15407a 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)); + }).filter(Boolean)); }, 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)); + }).filter(Boolean)); }, template(value) { return value; |