summaryrefslogtreecommitdiffstats
path: root/client/components/main/editor.js
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-12-08 16:03:31 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-12-08 16:03:31 +0800
commit672c21bfe043c557c059086561113a6a1dfefb42 (patch)
tree07a01706d6f8abba1ee7aeb393c991db28ef3b15 /client/components/main/editor.js
parentb719968df5577af6dd69eb32f6c2e2a43a322e87 (diff)
downloadwekan-672c21bfe043c557c059086561113a6a1dfefb42.tar.gz
wekan-672c21bfe043c557c059086561113a6a1dfefb42.tar.bz2
wekan-672c21bfe043c557c059086561113a6a1dfefb42.zip
bugfix: only care active members, also optimize some code
Diffstat (limited to 'client/components/main/editor.js')
-rw-r--r--client/components/main/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 82fce641..a30a5e1d 100644
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -28,7 +28,7 @@ Template.editor.onRendered(() => {
match: /\B@(\w*)$/,
search(term, callback) {
const currentBoard = Boards.findOne(Session.get('currentBoard'));
- callback(currentBoard.members.map((member) => {
+ callback(currentBoard.activeMembers().map((member) => {
const username = Users.findOne(member.userId).username;
return username.includes(term) ? username : null;
}));