Collect Film's nested data on mounted (Locations/Vehicles/People)
This commit is contained in:
@@ -3,7 +3,7 @@ export const state = () => ({
|
||||
});
|
||||
|
||||
export const mutations = {
|
||||
setlocation: (state, location) => {
|
||||
setLocation: (state, location) => {
|
||||
state.location = location;
|
||||
}
|
||||
};
|
||||
@@ -15,7 +15,7 @@ export const actions = {
|
||||
if (callback) return location;
|
||||
commit("setLocation", location);
|
||||
} catch (e) {
|
||||
throw Error("API Error occurred.");
|
||||
throw Error(`API Error occurred: ${e.message}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user