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