Merge pull request #2389 from christopherjmedlin/consistent-flair-ordering

Consistent flair ordering.
pull/21833/head
J. Ryan Stinnett 2019-01-02 16:35:50 -06:00 committed by GitHub
commit 758e867208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ export default React.createClass({
_getDisplayedGroups(userGroups, relatedGroups) { _getDisplayedGroups(userGroups, relatedGroups) {
let displayedGroups = userGroups || []; let displayedGroups = userGroups || [];
if (relatedGroups && relatedGroups.length > 0) { if (relatedGroups && relatedGroups.length > 0) {
displayedGroups = displayedGroups.filter((groupId) => { displayedGroups = relatedGroups.filter((groupId) => {
return relatedGroups.includes(groupId); return displayedGroups.includes(groupId);
}); });
} else { } else {
displayedGroups = []; displayedGroups = [];