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
|
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;
|
: Object.entries(selectedGameGroupData.selectedGroups).length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.values(selectedGame.empires).forEach((empire) => {
|
Object.values(selectedGame.empires).forEach((empire) => {
|
||||||
console.log(empire); //DEBUG
|
|
||||||
if (empire.group in selectedGameGroupData.selectedGroups) {
|
if (empire.group in selectedGameGroupData.selectedGroups) {
|
||||||
if (typeof newPageData.takenPortraits[empire.portrait_group_id] === 'undefined') {
|
if (typeof newPageData.takenPortraits[empire.portrait_group_id] === 'undefined') {
|
||||||
newPageData.takenPortraits[empire.portrait_group_id] = [];
|
newPageData.takenPortraits[empire.portrait_group_id] = [];
|
||||||
|
@ -170,7 +169,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
pageData = newPageData;
|
pageData = newPageData;
|
||||||
console.log(pageData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save Tab to Store
|
// Save Tab to Store
|
||||||
|
|
Reference in a new issue