summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorhitsmaxft <[email protected]>2020-02-09 22:28:27 +0800
committerHaishan <[email protected]>2020-02-10 17:28:04 +0800
commitbd82b8c5e3bad3efeecd9e2599b07128d290bea6 (patch)
tree82499a0ebdecd0f58325205ce783a0610f7f76b3 /src/components
parentc206c3369754bfe934f157f0f078a7b6d25e925f (diff)
dropdown button & global switch
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ProxyGroup.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/ProxyGroup.js b/src/components/ProxyGroup.js
index c000535..ae1fe58 100644
--- a/src/components/ProxyGroup.js
+++ b/src/components/ProxyGroup.js
@@ -5,7 +5,7 @@ import { ChevronsDown } from 'react-feather';
import cx from 'classnames';
import { connect } from './StateProvider';
-import { getDelay, getProxies, getRtFilterSwitch } from '../store/proxies';
+import { getDelay, getRtFilterSwitch } from '../store/proxies';
import Proxy, { ProxySmall } from './Proxy';
import { SectionNameType } from './shared/Basic';
@@ -124,14 +124,14 @@ const getSortDelay = (d, w) => {
const mapState = (s, { all }) => {
const delay = getDelay(s);
- const filterError = getRtFilterSwitch(s);
+ const filterByRt = getRtFilterSwitch(s);
const groupList = [];
const proxyList = [];
let clonelist = [...all];
- if (filterError) {
+ if (filterByRt) {
const filterList = clonelist.filter(name => {
const d = delay[name];
if (d === undefined) {