Invertir orden de laboratorios: más reciente arriba
This commit is contained in:
@@ -900,7 +900,7 @@ for (const linea of lineas) {
|
||||
reset();
|
||||
};
|
||||
|
||||
const labs = lab.filter(l => l.pacienteId === patientId).sort((a, b) => new Date(b.fecha).getTime() - new Date(a.fecha).getTime());
|
||||
const labs = lab.filter(l => l.pacienteId === patientId).sort((a, b) => new Date(b.fecha).getTime() - new Date(a.fecha).getTime()).reverse();
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
|
||||
Reference in New Issue
Block a user