Fix issue with push missing the URL base

pull/5158/head
nitsua 4 years ago committed by Qstick
parent 6c9e4994d8
commit f850e75d4e

@ -35,8 +35,8 @@ class DeleteMovieModalContentConnector extends Component {
this.props.onModalClose(true);
if (this.props.previousMovie) {
this.props.push(this.props.previousMovie);
if (this.props.nextMovieRelativePath) {
this.props.push(window.Radarr.urlBase + this.props.nextMovieRelativePath);
}
}
@ -58,7 +58,7 @@ DeleteMovieModalContentConnector.propTypes = {
onModalClose: PropTypes.func.isRequired,
deleteMovie: PropTypes.func.isRequired,
push: PropTypes.func.isRequired,
previousMovie: PropTypes.string
nextMovieRelativePath: PropTypes.string
};
export default connect(createMapStateToProps, mapDispatchToProps)(DeleteMovieModalContentConnector);

@ -733,7 +733,7 @@ class MovieDetails extends Component {
isOpen={isDeleteMovieModalOpen}
movieId={id}
onModalClose={this.onDeleteMovieModalClose}
previousMovie={`/movie/${previousMovie.titleSlug}`}
nextMovieRelativePath={`/movie/${nextMovie.titleSlug}`}
/>
<InteractiveImportModal

Loading…
Cancel
Save