Commit 5dd075d3 authored by esatakpunar's avatar esatakpunar

some naming bug fixed

parent 25989cc7
......@@ -36,7 +36,7 @@ export default {
axios
.delete(`http://localhost:3000/products/${id}`)
.then(() => {
dispatch("fetchProductData", {});
dispatch("fetchProductData");
})
.catch((e) => {
console.log(e);
......
......@@ -53,6 +53,6 @@ export default {
return state.dialog;
},
filteredProductList(state) {
return state.filteredInventoryList;
return state.filteredProductList;
},
};
......@@ -15,6 +15,6 @@ export default {
state.editedItem = item;
},
setfilteredProductList(state, data) {
state.filteredInventoryList = data;
state.filteredProductList = data;
},
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment