Skip to content

Commit

Permalink
Update actualizar.controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresJaramillo2023 authored Aug 18, 2023
1 parent 7a0ba5c commit 5428ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/actualizar.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ formulario.addEventListener("submit", (event) => {
clientServices
.crearCliente1(varUrl, categoria, varNombre, varPrecio, varDescripcion)
.then(() => {
window.location.href = "./index.html";
window.location.href = "../index.html";
})
.catch(err => console.log(err));
window.location.reload()
} else {
clientServices.actualizarCliente(varUrl, categoria, varNombre, varPrecio, varDescripcion, id).then(() => {
window.location.href = "./index.html";
window.location.href = "../index.html";
});
}
});

0 comments on commit 5428ff4

Please sign in to comment.