fix: nombre profesional bajo firma firmada; ver paciente desde espera toma

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-29 21:32:03 -05:00
co-authored by Claude Sonnet 4.6
parent 309c1c93c6
commit 90d4e1bc49
2 changed files with 13 additions and 10 deletions
+10 -2
View File
@@ -1238,8 +1238,16 @@ function renderColaCard(t) {
// ── Seleccionar sin llamar ────────────────────────────────────
async function seleccionarSinLlamar(turnoId) {
const t = _colaMap.get(turnoId);
if (!t) return;
let t = _colaMap.get(turnoId);
if (!t) {
// Turno no está en cola (p.ej. en espera de siguiente toma) — cargar directamente
try {
const r = await fetch(`${API}get_turno.php?id=${turnoId}`);
const j = await r.json();
if (!j.ok || !j.turno) return;
t = j.turno;
} catch (_) { return; }
}
turnoActivo = t;
mostrarCabeceraTurno(t);
await cargarFichaSolicitud(t.id);