Portrait bg coloring min value

This commit is contained in:
Neshura 2023-09-13 16:28:44 +02:00
parent afe8416b73
commit c14a11ebe4
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -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