descomentar fetch de registro
This commit is contained in:
parent
ac80892afb
commit
5a2f0846d8
|
@ -150,7 +150,7 @@ const Reservations = () => {
|
||||||
}
|
}
|
||||||
console.log(_reservation)
|
console.log(_reservation)
|
||||||
|
|
||||||
/* fetch('http://localhost:4000/reservation/createReservation/', {
|
fetch('http://localhost:4000/reservation/createReservation/', {
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify(_reservation),
|
body: JSON.stringify(_reservation),
|
||||||
|
@ -162,7 +162,7 @@ const Reservations = () => {
|
||||||
if (response.status !== 200 && response.status !== 201)
|
if (response.status !== 200 && response.status !== 201)
|
||||||
console.log(`Hubo un error en el servicio: ${response.status}`)
|
console.log(`Hubo un error en el servicio: ${response.status}`)
|
||||||
else return response.json()
|
else return response.json()
|
||||||
}).then(() => {*/
|
}).then(() => {
|
||||||
_reservations.push(_reservation);
|
_reservations.push(_reservation);
|
||||||
setReservations(_reservations)
|
setReservations(_reservations)
|
||||||
toast.current.show({
|
toast.current.show({
|
||||||
|
@ -173,7 +173,7 @@ const Reservations = () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
setReservationDialog(false)
|
setReservationDialog(false)
|
||||||
/*})*/
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue