diff options
author | floatinghotpot <rjfun.mobile@gmail.com> | 2015-12-08 16:03:31 +0800 |
---|---|---|
committer | floatinghotpot <rjfun.mobile@gmail.com> | 2015-12-08 16:03:31 +0800 |
commit | 672c21bfe043c557c059086561113a6a1dfefb42 (patch) | |
tree | 07a01706d6f8abba1ee7aeb393c991db28ef3b15 /client/components/lists/listBody.js | |
parent | b719968df5577af6dd69eb32f6c2e2a43a322e87 (diff) | |
download | wekan-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.js | 2 |
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; })); |