Fix issue with Studios/Genres/Tags types in the Home Screen Section Wizard

This commit is contained in:
HighImKevin
2026-09-16 07:27:06 -04:00
parent 3fd8f75ab2
commit 1853fd2e4f
3 changed files with 394 additions and 122 deletions
+3 -3
View File
@@ -420,11 +420,11 @@
}
if (type === 'Tag' || type === 'Genre') {
// Use dataHelper.getFilters with includeItemTypes
const itemTypes = includeItemTypes || ['Movie'];
const itemTypes = (includeItemTypes && includeItemTypes.length) ? includeItemTypes : null;
if (window.dataHelper && window.dataHelper.getFilters) {
const filters = await window.dataHelper.getFilters(itemTypes, !refresh, refresh);
options = type === 'Tag' ? (filters?.Tags || []) : (filters?.Genres || []);
const raw = type === 'Tag' ? (filters?.Tags || []) : (filters?.Genres || []);
options = raw.map(entry => (typeof entry === 'string' ? entry : entry.name));
} else {
// Fallback to old method
const url = `${serverAddress}/Items/Filters?UserId=${userId}&IncludeItemTypes=${Array.isArray(itemTypes) ? itemTypes.join(',') : itemTypes}`;