|
|
|
@ -797,8 +797,11 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement {
|
|
|
|
|
typeItems.appendChild(addDropdownItem('', ''));
|
|
|
|
|
let typeAvailable = false;
|
|
|
|
|
_.forEach(types, (sectionType: Record<string, any>) => {
|
|
|
|
|
if (sectionType.type !== 'folder' && sectionType.type !== 'track' && sectionType.type !== 'episode') {
|
|
|
|
|
const key = sectionType.key.split('type=')[1];
|
|
|
|
|
if (sectionType.type !== 'track' && sectionType.type !== 'episode') {
|
|
|
|
|
let key = sectionType.key.split('type=')[1];
|
|
|
|
|
if (sectionType.type === 'folder') {
|
|
|
|
|
key = 'folder';
|
|
|
|
|
}
|
|
|
|
|
if (_.isEqual(key, this.config.displayType)) {
|
|
|
|
|
typeAvailable = true;
|
|
|
|
|
}
|
|
|
|
|