mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Tweak monitor migration to avoid overwrites of valid settings
This commit is contained in:
@@ -5,17 +5,21 @@ export default function migrateMonitorToEnum(persistedState) {
|
|||||||
const discoverMovie = get(persistedState, 'discoverMovie.defaults.monitor');
|
const discoverMovie = get(persistedState, 'discoverMovie.defaults.monitor');
|
||||||
|
|
||||||
if (addMovie != null) {
|
if (addMovie != null) {
|
||||||
if (addMovie) {
|
if (addMovie === true) {
|
||||||
persistedState.addMovie.defaults.monitor = 'movieOnly';
|
persistedState.addMovie.defaults.monitor = 'movieOnly';
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (addMovie === false) {
|
||||||
persistedState.addMovie.defaults.monitor = 'none';
|
persistedState.addMovie.defaults.monitor = 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (discoverMovie != null) {
|
if (discoverMovie != null) {
|
||||||
if (discoverMovie) {
|
if (discoverMovie === true) {
|
||||||
persistedState.discoverMovie.defaults.monitor = 'movieOnly';
|
persistedState.discoverMovie.defaults.monitor = 'movieOnly';
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (discoverMovie === false) {
|
||||||
persistedState.discoverMovie.defaults.monitor = 'none';
|
persistedState.discoverMovie.defaults.monitor = 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user