diff --git a/modules/turnero/views/recepcion.php b/modules/turnero/views/recepcion.php index bf7c1a9..695294e 100644 --- a/modules/turnero/views/recepcion.php +++ b/modules/turnero/views/recepcion.php @@ -480,12 +480,12 @@ async function onLugarChange() { try { const res = await fetch(`${API}get_lugar_formularios.php?lugar_id=${lugarId}`); const json = await res.json(); - if (!json.ok || !json.data?.formularios?.length) { + if (!json.ok || !json.formularios?.length) { sec.style.display = 'none'; return; } - lista.innerHTML = json.data.formularios.map(f => { + lista.innerHTML = json.formularios.map(f => { const nom = escHtml(f.nombre); const disabled = !turnoActivo ? 'disabled title="Llama el turno primero"' : ''; return `