Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix filtering user list by ID #339

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Fix filtering user list by ID #339

merged 1 commit into from
Jul 13, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jul 13, 2016

return false;

if (query) {
const matchesName = m.name.toLowerCase().indexOf(query) !== -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rely on m.name and m.userId being non-null?

Copy link
Member Author

@dbkr dbkr Jul 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, name defaults to userId and all user must have an ID.

@richvdh
Copy link
Member

richvdh commented Jul 13, 2016

LGTM other than comment

@richvdh richvdh assigned dbkr and unassigned richvdh Jul 13, 2016
@dbkr dbkr merged commit 95529df into develop Jul 13, 2016
@richvdh richvdh deleted the dbkr/search_by_user_id branch February 15, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants