mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: prettier 2.2.1 (#11862)
This commit is contained in:
@@ -14,7 +14,7 @@ export default DiscourseRoute.extend({
|
||||
Badge.findAll().then(function (badges) {
|
||||
controller.set("badges", badges);
|
||||
if (badges.length > 0) {
|
||||
var grantableBadges = controller.get("grantableBadges");
|
||||
let grantableBadges = controller.get("grantableBadges");
|
||||
if (grantableBadges.length > 0) {
|
||||
controller.set("selectedBadgeId", grantableBadges[0].get("id"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user