From ce231431b96fd898de2c7b13f48d74a54fdfac39 Mon Sep 17 00:00:00 2001 From: GyDi Date: Mon, 10 Jul 2023 23:16:19 +0800 Subject: [PATCH] fix: remove fallback group select status, close #659 --- src/hooks/use-profiles.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hooks/use-profiles.ts b/src/hooks/use-profiles.ts index 4ecd772..5faa3ca 100644 --- a/src/hooks/use-profiles.ts +++ b/src/hooks/use-profiles.ts @@ -49,15 +49,10 @@ export const useProfiles = () => { const { global, groups } = proxiesData; [global, ...groups].forEach(({ type, name, now }) => { - if (!now || (type !== "Selector" && type !== "Fallback")) return; + if (!now || type !== "Selector") return; if (selectedMap[name] != null && selectedMap[name] !== now) { hasChange = true; updateProxy(name, selectedMap[name]); - console.log({ - name, - now, - select: selectedMap[name], - }); } newSelected.push({ name, now: selectedMap[name] }); });