Portrait bg coloring min value
This commit is contained in:
parent
afe8416b73
commit
c14a11ebe4
1 changed files with 1 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
}
|
||||
});
|
||||
groupPortraitLimit = containsNA
|
||||
? Object.entries($ChellarisDataStore.games[$SelectedGameStore].groups).length - 1
|
||||
? Math.max(Object.entries($ChellarisDataStore.games[$SelectedGameStore].groups).length - 1, 1)
|
||||
: Object.entries(selectedGameGroupData.selectedGroups).length;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,6 @@
|
|||
});
|
||||
|
||||
Object.values(selectedGame.empires).forEach((empire) => {
|
||||
console.log(empire); //DEBUG
|
||||
if (empire.group in selectedGameGroupData.selectedGroups) {
|
||||
if (typeof newPageData.takenPortraits[empire.portrait_group_id] === 'undefined') {
|
||||
newPageData.takenPortraits[empire.portrait_group_id] = [];
|
||||
|
@ -170,7 +169,6 @@
|
|||
}
|
||||
|
||||
pageData = newPageData;
|
||||
console.log(pageData);
|
||||
}
|
||||
|
||||
// Save Tab to Store
|
||||
|
|
Reference in a new issue