fix renderUpcoming func

This commit is contained in:
MontejoJorge
2025-04-21 18:13:12 +02:00
parent 0c51a335a4
commit 72d214f99d
+5 -7
View File
@@ -66,15 +66,13 @@ function renderUpcoming(elem, items) {
}
if (dateText != currentGroupName) {
if (currentGroup.length) {
groups.push({
name: currentGroupName,
items: currentGroup
});
}
currentGroupName = dateText;
currentGroup = [item];
groups.push({
name: currentGroupName,
items: currentGroup
});
} else {
currentGroup.push(item);
}