not showing lists with 0 songs

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-11 09:57:19 +02:00
parent 052cdc229a
commit f1f374763c
2 changed files with 4 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ var Frontpage = {
if(!lists[i].hasOwnProperty("pinned")){
lists[i].pinned = 0;
}
if(!lists[i].hasOwnProperty("count") || lists[i].count == 0) {
delete lists[i];
}
}
if(popular) {