Quellcode durchsuchen

Merge branch 'feature-tianyong'

TIANYONG vor 1 Jahr
Ursprung
Commit
49e92acdb0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/state.ts

+ 1 - 1
src/state.ts

@@ -562,7 +562,7 @@ export const setSection = (start: number, end: number, userSpeed?: number) => {
     lastEndNotes = newEndNotes.filter((n: any) => n.noteId === newLastEndId)
   }
 
-  const endIdx: any = (isCanRepeat && canRepeatInfo.repeatIdx == state.repeatInfo.length - 1) ? 1 : 0
+  const endIdx: any = (isCanRepeat && canRepeatInfo.repeatIdx == state.repeatInfo.length - 1) ? lastEndNotes.length - 1 : 0
   const startNote = startNotes[0]
   // const endNote = endNotes[endNotes.length - 1]
   const endNote = lastEndNotes[endIdx]