mirror of
https://github.com/Radarr/Radarr
synced 2025-12-30 04:06:39 +01:00
Fix issue with push missing the URL base
This commit is contained in:
parent
6c9e4994d8
commit
f850e75d4e
2 changed files with 4 additions and 4 deletions
|
|
@ -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…
Reference in a new issue