Fixed: Imported episodes updating on Calendar

Closes #6240
This commit is contained in:
Mark McDowall 2023-12-14 17:26:53 -08:00
parent 0cd5bb50bd
commit 5a3bc49392
4 changed files with 5 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class CalendarConnector extends Component {
gotoCalendarToday
} = this.props;
registerPagePopulator(this.repopulate);
registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) {
fetchCalendar();

View File

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

View File

@ -49,7 +49,7 @@ class CutoffUnmetConnector extends Component {
gotoCutoffUnmetFirstPage
} = this.props;
registerPagePopulator(this.repopulate, ['episodeFileUpdated']);
registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) {
fetchCutoffUnmet();

View File

@ -46,7 +46,7 @@ class MissingConnector extends Component {
gotoMissingFirstPage
} = this.props;
registerPagePopulator(this.repopulate, ['episodeFileUpdated']);
registerPagePopulator(this.repopulate, ['episodeFileUpdated', 'episodeFileDeleted']);
if (useCurrentPage) {
fetchMissing();