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:
co-authored by
Claude Sonnet 4.6
parent
309c1c93c6
commit
90d4e1bc49
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user