fix invalid songs with no song mark
This commit is contained in:
@@ -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[]);
|
||||||
|
|||||||
Reference in New Issue
Block a user