@ -119,7 +119,7 @@ function createMapStateToProps() {
const previousMovie = sortedMovies [ movieIndex - 1 ] || _ . last ( sortedMovies ) ;
const previousMovie = sortedMovies [ movieIndex - 1 ] || _ . last ( sortedMovies ) ;
const nextMovie = sortedMovies [ movieIndex + 1 ] || _ . first ( 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 , movieId s : [ movie . id ] } ) ) ;
const movieRefreshingCommand = findCommand ( commands , { name : commandNames . REFRESH _MOVIE } ) ;
const movieRefreshingCommand = findCommand ( commands , { name : commandNames . REFRESH _MOVIE } ) ;
const allMoviesRefreshing = (
const allMoviesRefreshing = (
isCommandExecuting ( movieRefreshingCommand ) &&
isCommandExecuting ( movieRefreshingCommand ) &&
@ -290,7 +290,7 @@ class MovieDetailsConnector extends Component {
onRefreshPress = ( ) => {
onRefreshPress = ( ) => {
this . props . dispatchExecuteCommand ( {
this . props . dispatchExecuteCommand ( {
name : commandNames . REFRESH _MOVIE ,
name : commandNames . REFRESH _MOVIE ,
movieId : this . props . id
movieId s : [ this . props . id ]
} ) ;
} ) ;
}
}