Browse Source

fix: proxy list error

GyDi 3 năm trước cách đây
mục cha
commit
73758ad1fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(() => {