fix: remove fallback group select status, close #659

This commit is contained in:
GyDi 2023-07-10 23:16:19 +08:00
parent 06e1e14e02
commit ce231431b9
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -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] });
});