mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: History should reload on MovieDetail Movie Change
This commit is contained in:
@@ -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() {
|
componentWillUnmount() {
|
||||||
this.props.clearMovieHistory();
|
this.props.clearMovieHistory();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user