mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05: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');
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user