Improve speed
This commit is contained in:
@@ -458,6 +458,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
function pickDoctorBannerText(details, fallbackDisplay) {
|
||||
const rowDoctor = (details[0]?.doctor_id || "").trim();
|
||||
const apiDisplay = (fallbackDisplay || "").trim();
|
||||
if (apiDisplay && (!rowDoctor || rowDoctor === "vision")) return apiDisplay;
|
||||
return rowDoctor || apiDisplay;
|
||||
}
|
||||
|
||||
function showVideoBatchDoctorInfo(displayText) {
|
||||
const el = $("video-batch-doctor-info");
|
||||
if (!el) return;
|
||||
@@ -754,7 +761,7 @@
|
||||
}
|
||||
const { details = [], summary = [] } = body;
|
||||
if (getRunMode() === "offline-batch") {
|
||||
showVideoBatchDoctorInfo(details[0]?.doctor_id || lastVideoBatchDoctorDisplay);
|
||||
showVideoBatchDoctorInfo(pickDoctorBannerText(details, lastVideoBatchDoctorDisplay));
|
||||
}
|
||||
const renderTable = (title, rows, cols) => {
|
||||
const h = document.createElement("h3");
|
||||
|
||||
Reference in New Issue
Block a user