0👍
Fixed,i accidentally failed to pass the payload to the request as follows
updateCategory({ commit }, updatedCategory) {
axios.put("api/food_categories/" + updatedCategory.id,{
'category_name':updatedCategory.category_name //This was the missing part
}).then(() => {
commit("changeName", updatedCategory);
});
},
- [Vuejs]-DueChange event for duet picker not working with Ionic 5 / Vue 3
- [Vuejs]-Upgrade component from option api to composition api (this.$parent)
Source:stackexchange.com