Fix an issue with the maxTeamsSlots configuration

pull/1/head
yflory 4 years ago
parent 0e6e691d7d
commit 714f2c6051

@ -395,7 +395,7 @@ define([
if (obj.error === "OFFLINE") { return UI.alert(Messages.driveOfflineError); } if (obj.error === "OFFLINE") { return UI.alert(Messages.driveOfflineError); }
if (obj.error) { return void console.error(obj.error); } if (obj.error) { return void console.error(obj.error); }
var list = []; var list = [];
var keys = Object.keys(obj).slice(0,3); var keys = Object.keys(obj).slice(0,MAX_TEAMS_SLOTS);
var slots = '('+Math.min(keys.length, MAX_TEAMS_SLOTS)+'/'+MAX_TEAMS_SLOTS+')'; var slots = '('+Math.min(keys.length, MAX_TEAMS_SLOTS)+'/'+MAX_TEAMS_SLOTS+')';
for (var i = keys.length; i < MAX_TEAMS_SLOTS; i++) { for (var i = keys.length; i < MAX_TEAMS_SLOTS; i++) {
obj[i] = { obj[i] = {

Loading…
Cancel
Save