ternary format
This commit is contained in:
parent
338a7e082c
commit
61528f7739
@ -57,7 +57,9 @@ function Team(args) {
|
|||||||
return setTeam(teamSelect);
|
return setTeam(teamSelect);
|
||||||
}
|
}
|
||||||
console.log(constructs.length);
|
console.log(constructs.length);
|
||||||
const dispConstructs = constructs.length >= ((teamPage + 1) * 6) ? constructs.slice(teamPage * 6, (teamPage + 1) * 6) : constructs.slice(teamPage * 6, constructs.length);
|
const dispConstructs = constructs.length >= ((teamPage + 1) * 6)
|
||||||
|
? constructs.slice(teamPage * 6, (teamPage + 1) * 6)
|
||||||
|
: constructs.slice(teamPage * 6, constructs.length);
|
||||||
|
|
||||||
const constructPanels = dispConstructs.map(construct => {
|
const constructPanels = dispConstructs.map(construct => {
|
||||||
const colour = teamSelect.indexOf(construct.id);
|
const colour = teamSelect.indexOf(construct.id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user