From eeec079f2194bd5780cde5101f917cc83c52e2ba Mon Sep 17 00:00:00 2001 From: Sergio Nicolas Lavaise Date: Wed, 22 Apr 2026 16:48:58 -0300 Subject: [PATCH] fix: suspend indications by deleting from table instead of updating state --- src/sections/SeccionIndicaciones.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sections/SeccionIndicaciones.tsx b/src/sections/SeccionIndicaciones.tsx index c46830b..6d02b55 100644 --- a/src/sections/SeccionIndicaciones.tsx +++ b/src/sections/SeccionIndicaciones.tsx @@ -192,11 +192,6 @@ export function SeccionIndicaciones({ recomendaciones, internacionId, add, updat const handleSuspender = (i: Indicacion, suspendioMedico: string) => { const now = new Date(); const fecha = now.toISOString().split('T')[0] + ' ' + now.toTimeString().split(' ')[0].substring(0, 5); - update(i.id, { - estado: 'Suspendida', - medicoSuspende: suspendioMedico, - fechaSuspension: fecha, - }); if (onAgregarMovimiento) { onAgregarMovimiento({ indicacionId: i.id, @@ -207,6 +202,7 @@ export function SeccionIndicaciones({ recomendaciones, internacionId, add, updat indicacionPrevia: formatIndicacion(i), }); } + del(i.id); }; const handleModificar = (i: Indicacion, modificoMedico: string) => {