mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 13:37:16 +08:00
DEV: removes _.include from codebase (#6620)
This commit is contained in:
@ -25,10 +25,7 @@ export default Ember.Controller.extend(GrantBadgeController, {
|
||||
lastGranted < badge.granted_at ? badge.granted_at : lastGranted;
|
||||
});
|
||||
|
||||
if (
|
||||
badges.length === 1 ||
|
||||
_.include(expandedBadges, badges[0].badge.id)
|
||||
) {
|
||||
if (badges.length === 1 || expandedBadges.includes(badges[0].badge.id)) {
|
||||
_.each(badges, badge => expanded.push(badge));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user