This commit is contained in:
Viet An
2026-06-11 09:16:47 +07:00
parent 03f3112573
commit a5a88b3b1c
6 changed files with 49 additions and 50 deletions

View File

@@ -23,7 +23,7 @@ function displayModal() {
const refreshData = inject("refreshData");
async function deleteProduct() {
const res = await $deleteapi("product", props.product.id);
const res = await $deleteapi("Product", props.product.id);
if (res !== "error") {
if (refreshData) refreshData();
}