diff --git a/vendor-all-product-list.php b/vendor-all-product-list.php index 397758f..43825fa 100644 --- a/vendor-all-product-list.php +++ b/vendor-all-product-list.php @@ -420,6 +420,7 @@ $products = productList(); } else { console.error("Product row with ID " + productId + " not found in the DOM."); } + location.reload(); } else { throw new Error("Error deleting product with ID " + productId + ": " + response.statusText); } @@ -429,10 +430,7 @@ $products = productList(); }); }); } - } - - - + }