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 6924914 commit cfec328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controllers/actualizar.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ formulario.addEventListener("submit", (event) => {
.crearCliente1(varUrl, categoria, varNombre, varPrecio, varDescripcion)
.then(() => {
window.location.href = "../index.html";
window.location.reload;
})
.catch(err => console.log(err));
window.location.reload()
window.location.reload;
} else {
clientServices.actualizarCliente(varUrl, categoria, varNombre, varPrecio, varDescripcion, id).then(() => {
window.location.href = "../index.html";
window.location.reload;
});
}
});

0 comments on commit cfec328

Please sign in to comment.