|
@@ -157,7 +157,7 @@ export default defineComponent({
|
|
|
const setPathColor = () => {
|
|
|
for (const note of detailData.musicalNotesPlayStats) {
|
|
|
const active = state.times[note.musicalNotesIndex];
|
|
|
- const svgEl = document.getElementById("vf-" + active.id);
|
|
|
+ const svgEl = active?.id ? document.getElementById("vf-" + active?.id) : null;
|
|
|
svgEl?.classList.add(colorsClass[note.musicalErrorType]);
|
|
|
}
|
|
|
};
|