Browse Source

Fix movies getter not returning the movie object by default

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

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

@ -59,6 +59,6 @@ export const getters: GettersTypes & GetterTree<IState, IState> = {
// Movie Store ---------------------------------------------------------------------------------
movies: (state: IState) => (movies: IMovie[]) => {
return movies.map(movie => state.movies[movie.tmdbId].movie);
return movies.map(movie => state.movies[movie.tmdbId]?.movie || movie);
}
};

Loading…
Cancel
Save