fixed select in active and the lock now can register ticket 1 month later

This commit is contained in:
2026-03-02 15:01:53 -06:00
parent 1a632f15b9
commit 34677f2d82
5 changed files with 81 additions and 8 deletions
+3 -1
View File
@@ -119,7 +119,7 @@ export default function CheckBoxMesa({ numAcount, table }: props) {
await axios.patch(
`${envConfig.apiUrl}/bitacora-mesa/cancelar/${bitacora.id_bitacora_mesa}`,
{ tiempo_asignado: minutos?? 0 },
{ tiempo_asignado: minutos ?? 0 },
{ headers }
);
@@ -137,6 +137,8 @@ export default function CheckBoxMesa({ numAcount, table }: props) {
}
router.refresh();
setBitacoraMesa(null);
setBitacoraCuenta(null);
} catch (error) {
Swal.fire({
title: "Error al cancelar tiempo",