dont crash when there is not lyrics

This commit is contained in:
Mylloon 2024-08-12 23:11:51 +02:00
parent fe38841bf6
commit 9719bf02c6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -144,7 +144,7 @@ export default {
}); });
} }
if (data && data.length > 0) { if (data && data.length > 0 && data[0].plainLyrics !== null) {
const title = data[0]; const title = data[0];
const limit_desc = 4096; const limit_desc = 4096;
const nb_embed = Math.ceil(title.plainLyrics.length / limit_desc); const nb_embed = Math.ceil(title.plainLyrics.length / limit_desc);