File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
src/components/QualDisplay/Queueing Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export default class BlueAllianceApiClient extends GenericApiClient {
5757 return resp . filter ( ( m ) => m . comp_level === 'qm' ) . map ( ( m ) => ( {
5858 number : m . match_number ,
5959 participants : BlueAllianceApiClient . AllianceTeamsToParticipants ( m . alliances ) ,
60+ type : 'match' ,
6061 } ) ) ;
6162 }
6263
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export default class FrcEventsApiClient extends GenericApiClient {
4141 return resp . Schedule . map ( ( x ) => ( {
4242 number : x . matchNumber ,
4343 schedStart : new Date ( x . startTime ) , // This is local time!
44+ type : 'match' ,
4445 participants : x . teams . filter ( ( team ) => ! ! team . teamNumber )
4546 . reduce ( ( prev , team ) => ( {
4647 ...prev ,
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ const Queueing = () => {
288288 < MatchDisplay
289289 className = { styles . queueingMatches }
290290 match = { x }
291- key = { x . number }
291+ key = { x . type === 'break' ? x . description : x . number }
292292 />
293293 ) ) }
294294 </ div >
You can’t perform that action at this time.
0 commit comments