diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 6276d23..fb141d9 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20890,7 +20890,7 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { }); } const sortFields = lodash.get(libraryData, `[0].Meta.Type[${displayTypeIndex}].Sort`); - if (!lodash.isNil(sortFields) && sortFields.length > 0) { + if (!lodash.isNil(sortFields) && sortFields.length > 0 && this.config.displayType !== 'folder') { lodash.forEach(sortFields, (sortField) => { sortItems.appendChild(addDropdownItem(sortField.key)); }); diff --git a/src/editor.ts b/src/editor.ts index 0a75d0f..ba5abfa 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -838,7 +838,7 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { }); } const sortFields = _.get(libraryData, `[0].Meta.Type[${displayTypeIndex}].Sort`); - if (!_.isNil(sortFields) && sortFields.length > 0) { + if (!_.isNil(sortFields) && sortFields.length > 0 && this.config.displayType !== 'folder') { _.forEach(sortFields, (sortField: Record) => { sortItems.appendChild(addDropdownItem(sortField.key)); });