From d98978eb1e7dc7880c87dce5d48660855f42696b Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 7 May 2024 14:05:00 -0400 Subject: [PATCH] Fix recently added for mixed libraries --- src/components/homesections/sections/recentlyAdded.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/homesections/sections/recentlyAdded.ts b/src/components/homesections/sections/recentlyAdded.ts index 9c39e681d8..30d3743ae1 100644 --- a/src/components/homesections/sections/recentlyAdded.ts +++ b/src/components/homesections/sections/recentlyAdded.ts @@ -137,15 +137,15 @@ export function loadRecentlyAdded( options: SectionOptions ) { elem.classList.remove('verticalSection'); - const excludeViewTypes = ['playlists', 'livetv', 'boxsets', 'channels']; + const excludeViewTypes = ['playlists', 'livetv', 'boxsets', 'channels', 'folders']; const userExcludeItems = user.Configuration?.LatestItemsExcludes ?? []; userViews.forEach(item => { - if (!item.Id || userExcludeItems.indexOf(item.Id) !== -1) { + if (!item.Id || userExcludeItems.includes(item.Id)) { return; } - if (!item.CollectionType || excludeViewTypes.indexOf(item.CollectionType) !== -1) { + if (item.CollectionType && excludeViewTypes.includes(item.CollectionType)) { return; }