0๐
โ
Iโve managed to solve this by retrieving each field, instead of the previous code which I retrieved all in a single object.
this.axios
.get(`/api/designations/${this.$route.params.id}`)
.then((res) => {
this.form.name = res.data.name;
this.form.description = res.data.description;
});
Before:
this.axios
.get(`/api/designations/${this.$route.params.id}`)
.then((res) => {
this.form= res.data;
});
Source:stackexchange.com