File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/features/Overview/ShredsProgression Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -676,16 +676,19 @@ function getGroupTsDeltas(
676676 . filter ( ( v ) => v !== undefined ) ;
677677
678678 if ( definedSlotTsDeltas . length === 0 ) {
679+ // no slots, no group
679680 continue ;
680681 }
681682
682683 // ignore missing slots at the start when positioning group
683684 const minStart = Math . min ( ...definedSlotTsDeltas . map ( ( [ start ] ) => start ) ) ;
684- const ends = definedSlotTsDeltas . map ( ( [ , end ] ) => end ) ;
685- const definedEnds = ends . filter ( ( end ) => end !== undefined ) ;
685+
686+ const definedEnds = definedSlotTsDeltas
687+ . map ( ( [ , end ] ) => end )
688+ . filter ( ( end ) => end !== undefined ) ;
686689
687690 // undefined slot end will extend to max x
688- const hasUndefinedEnd = ends . length > definedEnds . length ;
691+ const hasUndefinedEnd = slotsPerLeader > definedEnds . length ;
689692 const maxEnd = hasUndefinedEnd ? undefined : Math . max ( ...definedEnds ) ;
690693
691694 groupTsDeltas [ leaderSlot ] = [ minStart , maxEnd ] ;
You can’t perform that action at this time.
0 commit comments