diff --git a/webapp/src/components/Productos/ProductoDeleteItem.tsx b/webapp/src/components/Productos/ProductoDeleteItem.tsx index d1c2a51..7124c93 100644 --- a/webapp/src/components/Productos/ProductoDeleteItem.tsx +++ b/webapp/src/components/Productos/ProductoDeleteItem.tsx @@ -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"); }