summaryrefslogtreecommitdiff
path: root/src/components/Config.js
diff options
context:
space:
mode:
authorHaishan <[email protected]>2020-06-18 20:39:33 +0800
committerGitHub <[email protected]>2020-06-18 20:39:33 +0800
commit48acdbb5bef6c40010a8402bc0eedf8486ed0935 (patch)
tree7b9d9acb7d1db1619ab36aefabc52ad197c29a83 /src/components/Config.js
parent9d5d238082801ec1382e3e41f0ab2ee6a62e6809 (diff)
parentc0adc3a7923ad8bd204a515885337ee0a68118e2 (diff)
Merge pull request #499 from zhzy0077/patch-1
Diffstat (limited to 'src/components/Config.js')
-rw-r--r--src/components/Config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Config.js b/src/components/Config.js
index 8f6e396..46c480d 100644
--- a/src/components/Config.js
+++ b/src/components/Config.js
@@ -27,15 +27,15 @@ const propsList = [{ id: 0 }, { id: 1 }, { id: 2 }, { id: 3 }];
const optionsRule = [
{
label: 'Global',
- value: 'global',
+ value: 'Global',
},
{
label: 'Rule',
- value: 'rule',
+ value: 'Rule',
},
{
label: 'Direct',
- value: 'direct',
+ value: 'Direct',
},
];
@@ -220,7 +220,7 @@ function ConfigImpl({
<ToggleSwitch
options={optionsRule}
name="mode"
- value={configState.mode && configState.mode.toLowerCase()}
+ value={configState.mode}
onChange={handleInputOnChange}
/>
</div>