diff --git a/frontend/src/Store/Actions/seriesActions.js b/frontend/src/Store/Actions/seriesActions.js index 27d581f76..828b95295 100644 --- a/frontend/src/Store/Actions/seriesActions.js +++ b/frontend/src/Store/Actions/seriesActions.js @@ -168,9 +168,10 @@ export const filterPredicates = { }, hasMissingSeason: function(item, filterValue, type) { + const predicate = filterTypePredicates[type]; const { seasons = [] } = item; - return seasons.some((season) => { + const hasMissingSeason = seasons.some((season) => { const { seasonNumber, statistics = {} @@ -189,6 +190,8 @@ export const filterPredicates = { episodeFileCount === 0 ); }); + + return predicate(hasMissingSeason, filterValue); } }; @@ -347,7 +350,8 @@ export const filterBuilderProps = [ { name: 'hasMissingSeason', label: () => translate('HasMissingSeason'), - type: filterBuilderTypes.EXACT + type: filterBuilderTypes.EXACT, + valueType: filterBuilderValueTypes.BOOL }, { name: 'year',