From ff479ad1709a1001831658426e1751ab38830d46 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 7 Jul 2018 22:58:06 -0400 Subject: [PATCH] Fixed: RootFolderSelect never uses provided initial value. Fixes #412 --- frontend/src/Components/Form/RootFolderSelectInputConnector.js | 2 +- src/NzbDrone.Core/ImportLists/ImportListDefinition.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/Components/Form/RootFolderSelectInputConnector.js b/frontend/src/Components/Form/RootFolderSelectInputConnector.js index eb6e1e8e1..b3dfcbd20 100644 --- a/frontend/src/Components/Form/RootFolderSelectInputConnector.js +++ b/frontend/src/Components/Form/RootFolderSelectInputConnector.js @@ -85,7 +85,7 @@ class RootFolderSelectInputConnector extends Component { onChange } = this.props; - if (!value || !_.some(values, (v) => v.hasOwnProperty(value)) || value === ADD_NEW_KEY) { + if (!value || !_.some(values, (v) => v.key === value) || value === ADD_NEW_KEY) { const defaultValue = values[0]; if (defaultValue.key === ADD_NEW_KEY) { diff --git a/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs b/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs index 6ffcffd4b..51afd2076 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListDefinition.cs @@ -5,7 +5,6 @@ namespace NzbDrone.Core.ImportLists public class ImportListDefinition : ProviderDefinition { public bool EnableAutomaticAdd { get; set; } - public bool ShouldMonitor { get; set; } public int ProfileId { get; set; } public int LanguageProfileId { get; set; }