1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-07-14 16:55:21 +02:00

Really fix UI Error on Collection Filter

#7563
This commit is contained in:
Qstick 2022-08-21 14:55:53 -05:00
parent 43d77308f9
commit 573405bae7
3 changed files with 5 additions and 5 deletions

View File

@ -262,10 +262,10 @@ export const defaultState = {
type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) {
const collectionList = items.reduce((acc, movie) => {
if (movie.collection) {
if (movie.collection && movie.collection.title) {
acc.push({
id: movie.collection.name,
name: movie.collection.name
id: movie.collection.title,
name: movie.collection.title
});
}

View File

@ -116,7 +116,7 @@ export const filterPredicates = {
const predicate = filterTypePredicates[type];
const { collection } = item;
return predicate(collection ? collection.title : '', filterValue);
return predicate(collection && collection.title ? collection.title : '', filterValue);
},
originalLanguage: function(item, filterValue, type) {

View File

@ -339,7 +339,7 @@ export const defaultState = {
type: filterBuilderTypes.ARRAY,
optionsSelector: function(items) {
const collectionList = items.reduce((acc, movie) => {
if (movie.collection) {
if (movie.collection && movie.collection.title) {
acc.push({
id: movie.collection.title,
name: movie.collection.title