fix invalid songs with no song mark

This commit is contained in:
2021-12-09 20:08:24 +01:00
parent c726d4716c
commit 2412c9f741

View File

@@ -36,6 +36,7 @@ export class TextRenderingService {
return [...array, section]; return [...array, section];
} }
const lineOfLineText = this.getLineOfLineText(line, transpose); const lineOfLineText = this.getLineOfLineText(line, transpose);
if (array.length === 0) return array;
if (lineOfLineText) array[array.length - 1].lines.push(lineOfLineText); if (lineOfLineText) array[array.length - 1].lines.push(lineOfLineText);
return array; return array;
}, [] as Section[]); }, [] as Section[]);