From 3232ee448a9493d62faecf1ade1f9980e4bb0771 Mon Sep 17 00:00:00 2001 From: Sergio Nicolas Lavaise Date: Fri, 17 Apr 2026 10:03:18 -0300 Subject: [PATCH] Fix: interconsultas filter with fallback to empty array --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index a1217db..afbe21a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -144,7 +144,7 @@ function AppContent() { acidosBase={store.getAcidosBaseByPaciente(paciente.id)} cultivos={store.getCultivosByPaciente(paciente.id)} estudiosComplementarios={store.estudiosComplementarios.filter(e => e.pacienteId === paciente.id)} - interconsultas={store.interconsultas.filter(ic => ic.internacionId === internacion.id)} + interconsultas={(store.interconsultas || []).filter(ic => ic.internacionId === internacion.id)} onAgregarEvolucion={store.agregarEvolucion} onActualizarEvolucion={store.actualizarEvolucion} onEliminarEvolucion={store.eliminarEvolucion}