Skip to content

Commit

Permalink
HotFix recarga de eliminar productos
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomalv committed May 2, 2022
1 parent 54a1e8d commit 2ce2817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/components/Productos/ProductoDeleteItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const ProductoDeleteItem = ({producto}: Props) => {
console.log(producto);
await productService.deleteProducto(user.username, user.token, producto);
toast.success("Succesfully deleted");
window.location.reload();
//window.location.reload();
window.location.assign("/deleteProduct")
} catch (error) {
toast.error("Error at deleting");
}
Expand Down

0 comments on commit 2ce2817

Please sign in to comment.