diff --git a/frontend/src/Movie/Details/MovieDetailsConnector.js b/frontend/src/Movie/Details/MovieDetailsConnector.js index 1f7f9cf93..56da94e7e 100644 --- a/frontend/src/Movie/Details/MovieDetailsConnector.js +++ b/frontend/src/Movie/Details/MovieDetailsConnector.js @@ -119,7 +119,7 @@ function createMapStateToProps() { const previousMovie = sortedMovies[movieIndex - 1] || _.last(sortedMovies); const nextMovie = sortedMovies[movieIndex + 1] || _.first(sortedMovies); - const isMovieRefreshing = isCommandExecuting(findCommand(commands, { name: commandNames.REFRESH_MOVIE, movieId: movie.id })); + const isMovieRefreshing = isCommandExecuting(findCommand(commands, { name: commandNames.REFRESH_MOVIE, movieIds: [movie.id] })); const movieRefreshingCommand = findCommand(commands, { name: commandNames.REFRESH_MOVIE }); const allMoviesRefreshing = ( isCommandExecuting(movieRefreshingCommand) && @@ -290,7 +290,7 @@ class MovieDetailsConnector extends Component { onRefreshPress = () => { this.props.dispatchExecuteCommand({ name: commandNames.REFRESH_MOVIE, - movieId: this.props.id + movieIds: [this.props.id] }); } diff --git a/frontend/src/Movie/Index/MovieIndexItemConnector.js b/frontend/src/Movie/Index/MovieIndexItemConnector.js index 42cc409ef..aa0b803c6 100644 --- a/frontend/src/Movie/Index/MovieIndexItemConnector.js +++ b/frontend/src/Movie/Index/MovieIndexItemConnector.js @@ -51,14 +51,14 @@ function createMapStateToProps() { const isRefreshingMovie = executingCommands.some((command) => { return ( command.name === commandNames.REFRESH_MOVIE && - command.body.movieId === movie.id + command.body.movieIds.includes(movie.id) ); }); const isSearchingMovie = executingCommands.some((command) => { return ( command.name === commandNames.MOVIE_SEARCH && - command.body.movieId === movie.id + command.body.movieIds.includes(movie.id) ); }); @@ -85,7 +85,7 @@ class MovieIndexItemConnector extends Component { onRefreshMoviePress = () => { this.props.dispatchExecuteCommand({ name: commandNames.REFRESH_MOVIE, - movieId: this.props.id + movieIds: [this.props.id] }); }