Release v1.6.9 #24

Merged
hardi merged 1 commits from release/v1.6.9 into master 2018-02-03 12:23:54 +01:00
2 changed files with 18 additions and 13 deletions

View File

@ -67,19 +67,24 @@ overview.route('/')
if (err) {
return next(err);
}
const s = squad.toObject();
s.members = squadMembers;
s.memberCount = squadMembers.length;
if (s.fraction === 'BLUFOR') {
delete s.fraction;
armyOverview.BLUFOR.squads.push(s);
countBlufor += s.members.length;
}
if (s.fraction === 'OPFOR') {
delete s.fraction;
armyOverview.OPFOR.squads.push(s);
countOpfor += s.members.length;
// do not return empty squads
if (squadMembers.length > 0) {
const s = squad.toObject();
s.members = squadMembers;
s.memberCount = squadMembers.length;
if (s.fraction === 'BLUFOR') {
delete s.fraction;
armyOverview.BLUFOR.squads.push(s);
countBlufor += s.members.length;
}
if (s.fraction === 'OPFOR') {
delete s.fraction;
armyOverview.OPFOR.squads.push(s);
countOpfor += s.members.length;
}
}
callback();
});
});

View File

@ -66,7 +66,7 @@ export class WarDetailComponent {
this.fractionStatsInitialized = true;
});
}
window.scroll({left: 0, top: 0, behavior: 'smooth'});
window.scrollTo({left: 0, top: 0, behavior: 'smooth'});
}
/**