|
@@ -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]
|