Skip to content

Commit

Permalink
[FIX] Member list search with no results (#10599)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed Apr 27, 2018
1 parent 20ce928 commit 9a8cd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-flextab/client/tabs/membersList.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Template.membersList.helpers({
const usersLimit = Template.instance().usersLimit.get();
if (usersLimit) {
hasMore = users.length > usersLimit;
users = _.first(users, usersLimit);
users = _.first(users, usersLimit) || [];
}
const totalShowing = users.length;

Expand Down

0 comments on commit 9a8cd30

Please sign in to comment.