dont crash when there is not lyrics
This commit is contained in:
parent
fe38841bf6
commit
9719bf02c6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue