Fixed: Filter by Studio if null studio exists in library

Fixes #4142
This commit is contained in:
Qstick
2020-02-11 21:01:55 -05:00
parent 3ea6d78d39
commit 79a05876bf

View File

@@ -213,13 +213,15 @@ export const defaultState = {
{ {
name: 'studio', name: 'studio',
label: 'Studio', label: 'Studio',
type: filterBuilderTypes.ARRAY, type: filterBuilderTypes.EXACT,
optionsSelector: function(items) { optionsSelector: function(items) {
const tagList = items.reduce((acc, movie) => { const tagList = items.reduce((acc, movie) => {
if (movie.studio) {
acc.push({ acc.push({
id: movie.studio, id: movie.studio,
name: movie.studio name: movie.studio
}); });
}
return acc; return acc;
}, []); }, []);