Null date_next at end of reports

This commit is contained in:
Jiang Yio 2023-05-25 06:19:48 -04:00
parent e63e7100f0
commit d08f76ec99

View File

@ -505,10 +505,8 @@
resultsets[i] = await loaders[i](this.client, alpha);
if(resultsets[i].next) next.push(resultsets[i].next);
}
if(next.length > 0) {
this.date_next = strptime_vista(Math.floor(Math.max(...next)));
this.date_next = next.length > 0 ? strptime_vista(Math.floor(Math.max(...next))) : null;
if(!alpha) this.date_begin = this.date_next;
}
} else {
this.dfn = null;
this.loaders = {};