Avoid modifying GLOBAL group when sorting groups (#704)

This commit is contained in:
Meng Dong 2022-06-09 20:51:44 +08:00 committed by GitHub
parent 7ab43cb539
commit 82dcba042a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,7 @@ function retrieveGroupNamesFrom(proxies: Record<string, ProxyItem>) {
if (p.all && Array.isArray(p.all)) { if (p.all && Array.isArray(p.all)) {
groupNames.push(prop); groupNames.push(prop);
if (prop === 'GLOBAL') { if (prop === 'GLOBAL') {
globalAll = p.all; globalAll = Array.from(p.all);
} }
} else if (NonProxyTypes.indexOf(p.type) < 0) { } else if (NonProxyTypes.indexOf(p.type) < 0) {
proxyNames.push(prop); proxyNames.push(prop);