Tweak monitor migration to avoid overwrites of valid settings

pull/7320/head
Qstick 2 years ago
parent 64f27bca4f
commit a6205c1ad4

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

Loading…
Cancel
Save