mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 15:29:40 +02:00
parent
43d77308f9
commit
573405bae7
@ -262,10 +262,10 @@ export const defaultState = {
|
|||||||
type: filterBuilderTypes.ARRAY,
|
type: filterBuilderTypes.ARRAY,
|
||||||
optionsSelector: function(items) {
|
optionsSelector: function(items) {
|
||||||
const collectionList = items.reduce((acc, movie) => {
|
const collectionList = items.reduce((acc, movie) => {
|
||||||
if (movie.collection) {
|
if (movie.collection && movie.collection.title) {
|
||||||
acc.push({
|
acc.push({
|
||||||
id: movie.collection.name,
|
id: movie.collection.title,
|
||||||
name: movie.collection.name
|
name: movie.collection.title
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ export const filterPredicates = {
|
|||||||
const predicate = filterTypePredicates[type];
|
const predicate = filterTypePredicates[type];
|
||||||
const { collection } = item;
|
const { collection } = item;
|
||||||
|
|
||||||
return predicate(collection ? collection.title : '', filterValue);
|
return predicate(collection && collection.title ? collection.title : '', filterValue);
|
||||||
},
|
},
|
||||||
|
|
||||||
originalLanguage: function(item, filterValue, type) {
|
originalLanguage: function(item, filterValue, type) {
|
||||||
|
@ -339,7 +339,7 @@ export const defaultState = {
|
|||||||
type: filterBuilderTypes.ARRAY,
|
type: filterBuilderTypes.ARRAY,
|
||||||
optionsSelector: function(items) {
|
optionsSelector: function(items) {
|
||||||
const collectionList = items.reduce((acc, movie) => {
|
const collectionList = items.reduce((acc, movie) => {
|
||||||
if (movie.collection) {
|
if (movie.collection && movie.collection.title) {
|
||||||
acc.push({
|
acc.push({
|
||||||
id: movie.collection.title,
|
id: movie.collection.title,
|
||||||
name: movie.collection.title
|
name: movie.collection.title
|
||||||
|
Loading…
Reference in New Issue
Block a user