Fixed: Stale formats score after changing quality profile for artists

Closes #5009
pull/5018/head
Bogdan 3 months ago
parent 950e94564e
commit afbead8a88

@ -166,7 +166,7 @@ class ArtistDetailsConnector extends Component {
// Lifecycle // Lifecycle
componentDidMount() { componentDidMount() {
registerPagePopulator(this.populate); registerPagePopulator(this.populate, ['artistUpdated']);
this.populate(); this.populate();
} }

@ -234,6 +234,8 @@ class SignalRConnector extends Component {
if (action === 'updated') { if (action === 'updated') {
this.props.dispatchUpdateItem({ section, ...body.resource }); this.props.dispatchUpdateItem({ section, ...body.resource });
repopulatePage('artistUpdated');
} else if (action === 'deleted') { } else if (action === 'deleted') {
this.props.dispatchRemoveItem({ section, id: body.resource.id }); this.props.dispatchRemoveItem({ section, id: body.resource.id });
} }

@ -53,7 +53,7 @@ class CutoffUnmetConnector extends Component {
gotoCutoffUnmetFirstPage gotoCutoffUnmetFirstPage
} = this.props; } = this.props;
registerPagePopulator(this.repopulate, ['trackFileUpdated', 'trackFileDeleted']); registerPagePopulator(this.repopulate, ['artistUpdated', 'trackFileUpdated', 'trackFileDeleted']);
if (useCurrentPage) { if (useCurrentPage) {
fetchCutoffUnmet(); fetchCutoffUnmet();

Loading…
Cancel
Save