diff --git a/htdocs/RoutePatientReports.vue b/htdocs/RoutePatientReports.vue index 0b84a60..620d1af 100644 --- a/htdocs/RoutePatientReports.vue +++ b/htdocs/RoutePatientReports.vue @@ -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))); - if(!alpha) this.date_begin = this.date_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 = {};