Merge pull request #2389 from christopherjmedlin/consistent-flair-ordering
Consistent flair ordering.pull/21833/head
commit
758e867208
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in New Issue