fix: optional chaining en tabla conx_db para evitar undefined

This commit is contained in:
Lizandro Guarnizo
2026-05-01 12:32:40 -05:00
parent 92ac8419fe
commit 8c4b401379
+2 -2
View File
@@ -39,9 +39,9 @@
<td class="py-3 text-xs px-3 border-b" x-text="data.puerto"></td>
<td class="py-3 text-xs px-3 border-b" x-text="data.usuario"></td>
<td class="py-3 text-xs px-3 border-b" x-text="data.password"></td>
<td class="py-3 text-xs px-3 border-b" x-text="tipos.find(ts => ts.ID == data.tipo_db_id).nombre"></td>
<td class="py-3 text-xs px-3 border-b" x-text="tipos.find(ts => ts.ID == data.tipo_db_id)?.nombre || '-'"></td>
<td class="py-3 text-xs px-3 border-b">
<span x-text="`${servidores.find(serv => serv.ID == data.servidor_id).nombre} - ${servidores.find(serv => serv.ID == data.servidor_id).ip_servidor}`"></span>
<span x-text="(servidores.find(serv => serv.ID == data.servidor_id)?.nombre ?? '-') + ' - ' + (servidores.find(serv => serv.ID == data.servidor_id)?.ip_servidor ?? '')"></span>
</td>
<td class="py-3 text-xs px-3 border-b w-24">
<div class="flex items-center gap-2">