mirror of
https://github.com/Radarr/Radarr.git
synced 2024-07-04 11:07:59 +02:00
Tweak monitor migration to avoid overwrites of valid settings
This commit is contained in:
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…
Reference in New Issue
Block a user