Fixed: Unable to edit metadata profiles

pull/6/head
Qstick 6 years ago
parent ef7d54a412
commit 93a0f18f82

@ -33,7 +33,7 @@ function createPrimaryAlbumTypesSelector() {
function createSecondaryAlbumTypesSelector() { function createSecondaryAlbumTypesSelector() {
return createSelector( return createSelector(
createProviderSettingsSelector(), createProviderSettingsSelector('metadataProfiles'),
(metadataProfile) => { (metadataProfile) => {
const secondaryAlbumTypes = metadataProfile.item.secondaryAlbumTypes; const secondaryAlbumTypes = metadataProfile.item.secondaryAlbumTypes;
if (!secondaryAlbumTypes || !secondaryAlbumTypes.value) { if (!secondaryAlbumTypes || !secondaryAlbumTypes.value) {
@ -56,7 +56,7 @@ function createSecondaryAlbumTypesSelector() {
function createReleaseStatusesSelector() { function createReleaseStatusesSelector() {
return createSelector( return createSelector(
createProviderSettingsSelector(), createProviderSettingsSelector('metadataProfiles'),
(metadataProfile) => { (metadataProfile) => {
const releaseStatuses = metadataProfile.item.releaseStatuses; const releaseStatuses = metadataProfile.item.releaseStatuses;
if (!releaseStatuses || !releaseStatuses.value) { if (!releaseStatuses || !releaseStatuses.value) {

Loading…
Cancel
Save