Fix people details page + pass test
This commit is contained in:
@@ -25,7 +25,9 @@ export const actions = {
|
||||
},
|
||||
async getPerson({ commit }, id) {
|
||||
try {
|
||||
const person = await this.$axios.$get(`/api/people/${id}`);
|
||||
const person = await this.$axios.$get(
|
||||
`/api/people/${id}?fields=id,name,gender,age,eye_color,hair_color,films`
|
||||
);
|
||||
commit("setPerson", person);
|
||||
} catch (e) {
|
||||
throw Error(`API Error occurred: ${e.message}`);
|
||||
|
||||
Reference in New Issue
Block a user