From 82dcba042adb0ff449646698b3e1069affe32be1 Mon Sep 17 00:00:00 2001 From: Meng Dong Date: Thu, 9 Jun 2022 20:51:44 +0800 Subject: [PATCH] Avoid modifying GLOBAL group when sorting groups (#704) --- src/store/proxies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { 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);