mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-02 11:11:21 +01:00
Fix GroupTable breaking when there were more groups than colors
This commit is contained in:
parent
e9496e924f
commit
5654710ed6
@ -21,7 +21,8 @@ const GroupTable = ({groups, colors}) => {
|
||||
if (groups[i].color) {
|
||||
return nightModeEnabled ? withReducedSaturation(groups[i].color) : groups[i].color;
|
||||
}
|
||||
return nightModeEnabled ? withReducedSaturation(colors[i]) : colors[i];
|
||||
const index = i % colors.length;
|
||||
return nightModeEnabled ? withReducedSaturation(colors[index]) : colors[index];
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user