Fix: interconsultas filter with fallback to empty array
This commit is contained in:
+1
-1
@@ -144,7 +144,7 @@ function AppContent() {
|
|||||||
acidosBase={store.getAcidosBaseByPaciente(paciente.id)}
|
acidosBase={store.getAcidosBaseByPaciente(paciente.id)}
|
||||||
cultivos={store.getCultivosByPaciente(paciente.id)}
|
cultivos={store.getCultivosByPaciente(paciente.id)}
|
||||||
estudiosComplementarios={store.estudiosComplementarios.filter(e => e.pacienteId === 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}
|
onAgregarEvolucion={store.agregarEvolucion}
|
||||||
onActualizarEvolucion={store.actualizarEvolucion}
|
onActualizarEvolucion={store.actualizarEvolucion}
|
||||||
onEliminarEvolucion={store.eliminarEvolucion}
|
onEliminarEvolucion={store.eliminarEvolucion}
|
||||||
|
|||||||
Reference in New Issue
Block a user