Browse Source

Add doc to movies getter

dev
David Ludwig 4 years ago
parent
commit
f1d8cc3dd0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      services/webui/src/app/store/getters.ts

+ 3
- 0
services/webui/src/app/store/getters.ts View File

@ -58,6 +58,9 @@ export const getters: GettersTypes & GetterTree<IState, IState> = {
// Movie Store ---------------------------------------------------------------------------------
/**
* Fetch the stored movie references for the provided movies
*/
movies: (state: IState) => (movies: IMovie[]) => {
return movies.map(movie => state.movies[movie.tmdbId]?.movie || movie);
}


Loading…
Cancel
Save