From b254e6241d390e4d36135c6ebb32310700932282 Mon Sep 17 00:00:00 2001 From: jouls Date: Wed, 8 May 2024 15:39:59 +0800 Subject: [PATCH] added reload on delete selected products --- vendor-all-product-list.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); }); }); } - } - - - + }