mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 00:09:37 +02:00
Fixed: History should reload on MovieDetail Movie Change
This commit is contained in:
parent
162980ccaf
commit
ee7e507cde
@ -35,6 +35,20 @@ class MovieHistoryTableContentConnector extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
const {
|
||||
movieId
|
||||
} = this.props;
|
||||
|
||||
// If the id has changed we need to clear the history
|
||||
if (prevProps.movieId !== movieId) {
|
||||
this.props.clearMovieHistory();
|
||||
this.props.fetchMovieHistory({
|
||||
movieId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.props.clearMovieHistory();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user