visual refinements for multi lineups

This commit is contained in:
2024-03-15 19:09:17 -05:00
parent f2371c6b5a
commit 832fb654ec
8 changed files with 151 additions and 130 deletions

View File

@@ -210,10 +210,14 @@ const processPostedEventLineupEntries = (body, eventLineupEntries, eventLineup)
const lineupEntryFlags = body.flags[i]
if (lineupEntryId != '' && lineupEntryLabel != '') {
// Update lineup entry
const eventLineupEntry = eventLineupEntries.find((e)=>e.id==Number(lineupEntryId))
eventLineupEntry.sequence = lineupEntrySequence
eventLineupEntry.label = compilePositionLabel(lineupEntryLabel, lineupEntryFlags)
newEventLineupEntries.push(eventLineupEntry)
try {
const eventLineupEntry = eventLineupEntries.find((e)=>e.id==Number(lineupEntryId))
eventLineupEntry.sequence = lineupEntrySequence
eventLineupEntry.label = compilePositionLabel(lineupEntryLabel, lineupEntryFlags)
newEventLineupEntries.push(eventLineupEntry)
} catch {
console.log
}
}
else if (lineupEntryId != '') {
// Delete lineup entry