Create Location component + tests

This commit is contained in:
2020-12-21 22:43:29 +01:00
parent cf9381309e
commit c3bb17f863
6 changed files with 472 additions and 8 deletions

View File

@@ -35,5 +35,10 @@ export const actions = {
export const getters = {
list: state => state.list,
location: state => state.location
location: state => state.location,
getLocationsByFilmId: state => id => {
return state.list.filter(location =>
location.films.find(film => film.split("/")[4] === id)
);
}
};