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

Merge pull request #5463 from thornbill/fix-recently-added-mixed

Fix recently added for mixed libraries
This commit is contained in:
Bill Thornton 2024-05-07 14:23:31 -04:00 committed by GitHub
commit 9b635ca497
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
} }