summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeng Dong <[email protected]>2022-06-09 20:51:44 +0800
committerGitHub <[email protected]>2022-06-09 20:51:44 +0800
commit82dcba042adb0ff449646698b3e1069affe32be1 (patch)
treeeb4394d0bca91b17984466053c4a021bb8084ac3
parent7ab43cb539f478c7ca8431adcb314733b978c643 (diff)
Avoid modifying GLOBAL group when sorting groups (#704)
-rw-r--r--src/store/proxies.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/proxies.tsx b/src/store/proxies.tsx
index 0505fce..b9927ea 100644
--- a/src/store/proxies.tsx
+++ b/src/store/proxies.tsx
@@ -330,7 +330,7 @@ function retrieveGroupNamesFrom(proxies: Record<string, ProxyItem>) {
if (p.all && Array.isArray(p.all)) {
groupNames.push(prop);
if (prop === 'GLOBAL') {
- globalAll = p.all;
+ globalAll = Array.from(p.all);
}
} else if (NonProxyTypes.indexOf(p.type) < 0) {
proxyNames.push(prop);