mirror of
https://github.com/sct/overseerr.git
synced 2025-12-26 16:27:17 +01:00
fix(blacklist): hide items from MediaSliders when hideBlacklisted is enabled (#1713)
This PR hides the blacklisted items from the MediaSliders appearing on the homepage when the hideBlacklisted is enabled.
This commit is contained in:
@@ -74,6 +74,14 @@ const MediaSlider = ({
|
||||
);
|
||||
}
|
||||
|
||||
if (settings.currentSettings.hideBlacklisted) {
|
||||
titles = titles.filter(
|
||||
(i) =>
|
||||
(i.mediaType === 'movie' || i.mediaType === 'tv') &&
|
||||
i.mediaInfo?.status !== MediaStatus.BLACKLISTED
|
||||
);
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
titles.length < 24 &&
|
||||
|
||||
Reference in New Issue
Block a user