We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0fca5f + be09987 commit bdf4b1eCopy full SHA for bdf4b1e
client/src/app/categories/form.vue
@@ -73,7 +73,7 @@
73
*/
74
this.setFetching({ fetching: true })
75
this.$http.get(`categories/${id}`).then((res) => {
76
- const { id: _id, name } = res.data.category // http://wesbos.com/destructuring-renaming/
+ const { id: _id, name } = res.data.data // http://wesbos.com/destructuring-renaming/
77
this.category.id = _id
78
this.category.name = name
79
this.setFetching({ fetching: false })
0 commit comments