Fixed: Imported movies updating on Calendar

(cherry picked from commit 5a3bc49392b700650a34536ff3794bce614f64a4)

Closes #9491
This commit is contained in:
Mark McDowall 2023-12-14 17:26:53 -08:00 committed by Bogdan
parent eef379277a
commit 6cb9a46cd4
2 changed files with 3 additions and 1 deletions

View File

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

View File

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