added reload on delete selected products

This commit is contained in:
jouls 2024-05-08 15:39:59 +08:00
parent eed7c3d7b1
commit b254e6241d
1 changed files with 2 additions and 4 deletions

View File

@ -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();
});
});
}
}
}
</script>
</section>
<!-- End Vendor dashboard section -->