From f0d0eb9a7ac0d930447363dafa4f8e40645b5fd9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 8 Mar 2025 15:30:01 -0800 Subject: [PATCH] Re-add repopulate reasons lost during TS conversion --- frontend/src/Series/Details/SeriesDetails.tsx | 2 +- frontend/src/Wanted/CutoffUnmet/CutoffUnmet.tsx | 6 +++++- frontend/src/Wanted/Missing/Missing.tsx | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/Series/Details/SeriesDetails.tsx b/frontend/src/Series/Details/SeriesDetails.tsx index 3fc009744..aac52321d 100644 --- a/frontend/src/Series/Details/SeriesDetails.tsx +++ b/frontend/src/Series/Details/SeriesDetails.tsx @@ -398,7 +398,7 @@ function SeriesDetails({ seriesId }: SeriesDetailsProps) { }, [populate]); useEffect(() => { - registerPagePopulator(populate); + registerPagePopulator(populate, ['seriesUpdated']); return () => { unregisterPagePopulator(populate); diff --git a/frontend/src/Wanted/CutoffUnmet/CutoffUnmet.tsx b/frontend/src/Wanted/CutoffUnmet/CutoffUnmet.tsx index 878b088d7..cc4fab7e9 100644 --- a/frontend/src/Wanted/CutoffUnmet/CutoffUnmet.tsx +++ b/frontend/src/Wanted/CutoffUnmet/CutoffUnmet.tsx @@ -212,7 +212,11 @@ function CutoffUnmet() { dispatch(fetchCutoffUnmet()); }; - registerPagePopulator(repopulate); + registerPagePopulator(repopulate, [ + 'seriesUpdated', + 'episodeFileUpdated', + 'episodeFileDeleted', + ]); return () => { unregisterPagePopulator(repopulate); diff --git a/frontend/src/Wanted/Missing/Missing.tsx b/frontend/src/Wanted/Missing/Missing.tsx index b678c24d2..c51290139 100644 --- a/frontend/src/Wanted/Missing/Missing.tsx +++ b/frontend/src/Wanted/Missing/Missing.tsx @@ -224,7 +224,11 @@ function Missing() { dispatch(fetchMissing()); }; - registerPagePopulator(repopulate); + registerPagePopulator(repopulate, [ + 'seriesUpdated', + 'episodeFileUpdated', + 'episodeFileDeleted', + ]); return () => { unregisterPagePopulator(repopulate);