changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user