|
@@ -1858,7 +1858,7 @@ export const fillWordColor = () => {
|
|
|
if (state.times[state.activeNoteIndex].noteElement?.length?.realValue === 0.5) {
|
|
|
const si = state.times[state.activeNoteIndex].si || 0;
|
|
|
const halfNotes = state.times[state.activeNoteIndex].measures.filter((item: any) => item?.noteElement?.length?.realValue === 0.5) || [];
|
|
|
- const sIdx = halfNotes.findIndex((item: any) => item.noteElement === state.times[state.activeNoteIndex].noteElement);
|
|
|
+ const sIdx = halfNotes?.findIndex((item: any) => item?.noteElement === state.times[state.activeNoteIndex]?.noteElement);
|
|
|
const filterRects = svgEl?.parentElement?.querySelectorAll('rect')?.length ? Array.from(svgEl?.parentElement?.querySelectorAll('rect')).filter(item => item.parentElement === svgEl?.parentElement) : [];
|
|
|
filterRects?.[sIdx]?.classList.add('rectActive');
|
|
|
} else {
|