Explorar o código

fix: proxy list error

GyDi %!s(int64=3) %!d(string=hai) anos
pai
achega
73758ad1fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/pages/proxies.tsx

+ 1 - 1
src/pages/proxies.tsx

@@ -33,7 +33,7 @@ const ProxyPage = () => {
   }, [proxiesData]);
 
   const modeList = ["rule", "global", "direct"];
-  const asGroup = curMode === "rule" || !groups.length;
+  const asGroup = curMode === "rule" && groups.length;
 
   // make sure that fetch the proxies successfully
   useEffect(() => {