summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.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/lists/listBody.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/lists/listBody.js')
-rw-r--r--client/components/lists/listBody.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 36b60d06..1fc84c82 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -186,7 +186,7 @@ BlazeComponent.extendComponent({
match: /\B@(\w*)$/,
search(term, callback) {
const currentBoard = Boards.findOne(Session.get('currentBoard'));
- callback($.map(currentBoard.members, (member) => {
+ callback($.map(currentBoard.activeMembers(), (member) => {
const user = Users.findOne(member.userId);
return user.username.indexOf(term) === 0 ? user : null;
}));