From 79a05876bfd7d2664b61dfbb07985c5ce671b5ef Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 11 Feb 2020 21:01:55 -0500 Subject: [PATCH] Fixed: Filter by Studio if null studio exists in library Fixes #4142 --- frontend/src/Store/Actions/movieIndexActions.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/Store/Actions/movieIndexActions.js b/frontend/src/Store/Actions/movieIndexActions.js index 42e6afada..ff5534b1e 100644 --- a/frontend/src/Store/Actions/movieIndexActions.js +++ b/frontend/src/Store/Actions/movieIndexActions.js @@ -213,13 +213,15 @@ export const defaultState = { { name: 'studio', label: 'Studio', - type: filterBuilderTypes.ARRAY, + type: filterBuilderTypes.EXACT, optionsSelector: function(items) { const tagList = items.reduce((acc, movie) => { - acc.push({ - id: movie.studio, - name: movie.studio - }); + if (movie.studio) { + acc.push({ + id: movie.studio, + name: movie.studio + }); + } return acc; }, []);