Fix frontend monitor migration

pull/7320/head
ta264 2 years ago
parent 144f564076
commit 63dde3eb89

@ -4,22 +4,22 @@ export default function migrateMonitorToEnum(persistedState) {
const addMovie = get(persistedState, 'addMovie.defaults.monitor');
const discoverMovie = get(persistedState, 'discoverMovie.defaults.monitor');
if (addMovie != null) {
if (addMovie === true) {
if (addMovie) {
if (addMovie === 'true') {
persistedState.addMovie.defaults.monitor = 'movieOnly';
}
if (addMovie === false) {
if (addMovie === 'false') {
persistedState.addMovie.defaults.monitor = 'none';
}
}
if (discoverMovie != null) {
if (discoverMovie === true) {
if (discoverMovie) {
if (discoverMovie === 'true') {
persistedState.discoverMovie.defaults.monitor = 'movieOnly';
}
if (discoverMovie === false) {
if (discoverMovie === 'false') {
persistedState.discoverMovie.defaults.monitor = 'none';
}
}

Loading…
Cancel
Save