Commit 5dd075d3 authored by esatakpunar's avatar esatakpunar

some naming bug fixed

parent 25989cc7
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
axios axios
.delete(`http://localhost:3000/products/${id}`) .delete(`http://localhost:3000/products/${id}`)
.then(() => { .then(() => {
dispatch("fetchProductData", {}); dispatch("fetchProductData");
}) })
.catch((e) => { .catch((e) => {
console.log(e); console.log(e);
......
...@@ -53,6 +53,6 @@ export default { ...@@ -53,6 +53,6 @@ export default {
return state.dialog; return state.dialog;
}, },
filteredProductList(state) { filteredProductList(state) {
return state.filteredInventoryList; return state.filteredProductList;
}, },
}; };
...@@ -15,6 +15,6 @@ export default { ...@@ -15,6 +15,6 @@ export default {
state.editedItem = item; state.editedItem = item;
}, },
setfilteredProductList(state, data) { 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