Create Vehicle component + tests
This commit is contained in:
@@ -35,5 +35,8 @@ export const actions = {
|
||||
|
||||
export const getters = {
|
||||
list: state => state.list,
|
||||
vehicle: state => state.vehicle
|
||||
vehicle: state => state.vehicle,
|
||||
getVehiclesByFilmId: state => id => {
|
||||
return state.list.filter(vehicle => vehicle.films.split("/")[4] === id);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user