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:
parent
ebc6d274bd
commit
d98978eb1e
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue