From afbead8a88efbf150ac427f15c5522efa7bc5d7f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 18 Aug 2024 17:57:54 +0300 Subject: [PATCH] Fixed: Stale formats score after changing quality profile for artists Closes #5009 --- frontend/src/Artist/Details/ArtistDetailsConnector.js | 2 +- frontend/src/Components/SignalRConnector.js | 2 ++ frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/Artist/Details/ArtistDetailsConnector.js b/frontend/src/Artist/Details/ArtistDetailsConnector.js index bed30a937..ec7228b0a 100644 --- a/frontend/src/Artist/Details/ArtistDetailsConnector.js +++ b/frontend/src/Artist/Details/ArtistDetailsConnector.js @@ -166,7 +166,7 @@ class ArtistDetailsConnector extends Component { // Lifecycle componentDidMount() { - registerPagePopulator(this.populate); + registerPagePopulator(this.populate, ['artistUpdated']); this.populate(); } diff --git a/frontend/src/Components/SignalRConnector.js b/frontend/src/Components/SignalRConnector.js index db631de6f..40c6265c6 100644 --- a/frontend/src/Components/SignalRConnector.js +++ b/frontend/src/Components/SignalRConnector.js @@ -234,6 +234,8 @@ class SignalRConnector extends Component { if (action === 'updated') { this.props.dispatchUpdateItem({ section, ...body.resource }); + + repopulatePage('artistUpdated'); } else if (action === 'deleted') { this.props.dispatchRemoveItem({ section, id: body.resource.id }); } diff --git a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js index dbb4f2235..d0d5591bc 100644 --- a/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js +++ b/frontend/src/Wanted/CutoffUnmet/CutoffUnmetConnector.js @@ -53,7 +53,7 @@ class CutoffUnmetConnector extends Component { gotoCutoffUnmetFirstPage } = this.props; - registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']); + registerPagePopulator(this.repopulate, ['artistUpdated', 'trackFileUpdated', 'trackFileDeleted']); if (useCurrentPage) { fetchCutoffUnmet();