1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix recently added for mixed libraries

This commit is contained in:
Bill Thornton 2024-05-07 14:05:00 -04:00
parent ebc6d274bd
commit d98978eb1e

View file

@ -137,15 +137,15 @@ export function loadRecentlyAdded(
options: SectionOptions options: SectionOptions
) { ) {
elem.classList.remove('verticalSection'); elem.classList.remove('verticalSection');
const excludeViewTypes = ['playlists', 'livetv', 'boxsets', 'channels']; const excludeViewTypes = ['playlists', 'livetv', 'boxsets', 'channels', 'folders'];
const userExcludeItems = user.Configuration?.LatestItemsExcludes ?? []; const userExcludeItems = user.Configuration?.LatestItemsExcludes ?? [];
userViews.forEach(item => { userViews.forEach(item => {
if (!item.Id || userExcludeItems.indexOf(item.Id) !== -1) { if (!item.Id || userExcludeItems.includes(item.Id)) {
return; return;
} }
if (!item.CollectionType || excludeViewTypes.indexOf(item.CollectionType) !== -1) { if (item.CollectionType && excludeViewTypes.includes(item.CollectionType)) {
return; return;
} }