From fa19f45171d3f1d5355078d028b2e58cc4705bda Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 14 Aug 2024 20:32:34 +0300 Subject: [PATCH] Fixed: Stale formats score after changing quality profile for movies --- frontend/src/Components/SignalRConnector.js | 2 ++ frontend/src/Movie/Details/MovieDetailsConnector.js | 2 +- frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index 540cff1b6..6c22be468 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -202,6 +202,8 @@ class SignalRConnector extends Component { if (action === 'updated') { this.props.dispatchUpdateItem({ section, ...body.resource }); + + repopulatePage('movieUpdated'); } else if (action === 'deleted') { this.props.dispatchRemoveItem({ section, id: body.resource.id }); } diff --git a/frontend/src/Movie/Details/MovieDetailsConnector.js b/frontend/src/Movie/Details/MovieDetailsConnector.js index c5150dd24..417e0bfe1 100644 --- a/frontend/src/Movie/Details/MovieDetailsConnector.js +++ b/frontend/src/Movie/Details/MovieDetailsConnector.js @@ -227,7 +227,7 @@ class MovieDetailsConnector extends Component { // Lifecycle componentDidMount() { - registerPagePopulator(this.populate); + registerPagePopulator(this.populate, ['movieUpdated']); this.populate(); } diff --git a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js index d78776728..2c1377807 100644 --- a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js +++ b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js @@ -49,7 +49,7 @@ class CutoffUnmetConnector extends Component { gotoCutoffUnmetFirstPage } = this.props; - registerPagePopulator(this.repopulate, ['movieFileUpdated', 'movieFileDeleted']); + registerPagePopulator(this.repopulate, ['movieUpdated', 'movieFileUpdated', 'movieFileDeleted']); if (useCurrentPage) { fetchCutoffUnmet();