Fixed: Series index not loading
This commit is contained in:
parent
221bb10261
commit
835910843b
|
@ -1,10 +1,10 @@
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
import createSeriesSelector from './createSeriesSelector';
|
import { createSeriesSelectorForHook } from './createSeriesSelector';
|
||||||
|
|
||||||
function createSeriesQualityProfileSelector(seriesId) {
|
function createSeriesQualityProfileSelector(seriesId) {
|
||||||
return createSelector(
|
return createSelector(
|
||||||
(state) => state.settings.qualityProfiles.items,
|
(state) => state.settings.qualityProfiles.items,
|
||||||
createSeriesSelector(seriesId),
|
createSeriesSelectorForHook(seriesId),
|
||||||
(qualityProfiles, series = {}) => {
|
(qualityProfiles, series = {}) => {
|
||||||
return qualityProfiles.find((profile) => {
|
return qualityProfiles.find((profile) => {
|
||||||
return profile.id === series.qualityProfileId;
|
return profile.id === series.qualityProfileId;
|
||||||
|
|
Loading…
Reference in New Issue